1.

Give a JavaScript statement for each of the following: a. A variable ‘s’ that stores the sum of variables ‘x’ and ‘y’ b. To find square root of x . c. To print data type of variable ‘n’.

Answer»

a. s= x + y 

b. Math.sqrt(x) 

c. typeof(n)



Discussion

No Comment Found

Related InterviewSolutions