Question: how to calculate percentage of marks in javascript?
Answer: var percentAsDecimal = (percentToGet / 100); //Multiply the percent decimal by the number. var percent = percentAsDecimal * number; //Alert it out for demonstration purposes.