javascript take away 0 after decimal code example
Example: javascript how to take off a decimal
function png(){
return Math.trunc(Math.random() * 10);
}
//Removes the decimal without rounding
function png(){
return Math.trunc(Math.random() * 10);
}
//Removes the decimal without rounding