ArithmeticOperator-1

 

Arithmetic operators are used to perform arithmetic operation. In this example, We have a variable with value as "100 + 50" so this will result in 150. See the code snippet:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <p id="sample"></p> <script> var x = 100 + 50; document.getElementById("sample").innerHTML = x; </script> </body> </html>
Output