Here is a simple example.
Not minified code
Code: Select all
let number = dynamicData.number;
function checkNum(num){
if(num < 5){
return num;
}else{
return err.msg;
}
}
checkNum(number);Code: Select all
let number=dynamicData.number;function checkNum(num){if(num<5){return num}else{return err.msg}}
checkNum(number)Alternatively you can uglify your code which will add some security to your code by making it unreadable to anyone trying to see what client side code is running on your website.


