in java script
when i try to add two numbers it just concatenates it like a string.@sharvishenvi as JavaScript dynamically assigns datatypes to all of the variables which we declare in the program.
In the program, you have specified variable x and y as strings by those quotes around the number. So do declare the variables in this fashion:
var x = 10; var y = 5
I am sure this will solve your problem
If your problem is solved then do click on the solution button so that the query can be closed