JavaScript Problem-2

Questions: Write an HTML document to find X to power n where value of x and n taken from user? Ans. The solution of above question is as follows: var x=prompt(“Enter value of X: “,””); var n=prompt(“Enter value of n: “,””); var result=Math.pow(x,n); document.write(result); Happy...

JavaScript Problem-01

Question: We shall take some numbers like 1 to 10, From the mentioned numbers we shall print the odd numbers except 3 and 5 and at last also we shall make SUM of those odd number .