Javascript examples for Operator:Quiz
Use the += operator to add a value of 5 to the variable x.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var x = 10;// w w w . j a v a 2 s .com x += 5; document.getElementById("demo").innerHTML = x; </script> </body> </html>