ArithmeticOperator-2

 

In this example, Arithmetic operation is (100 + 50)*a where a is 5 and this will result in 750. 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 a=5; var x = (100 + 50)*a; document.getElementById("sample").innerHTML = x; </script> </body> </html>
Output