Question: how to calculate percentage using javascript?
Answer: Sample Solution:- HTML Code: <! ...  JavaScript Code: function percentage(num, per) { return (num/100)*per; } console.log(percentage(1000, 47.12)); ...  Flowchart: Live Demo: ...  Improve this sample solution and post your code through Disqus.