Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Assignment Operators</title> </head> <body> <script> let x; // Declaring Variable x = 10; document.write(x + "<br>"); // Prints: 10 x = 20; x += 30; document.write(x + "<br>"); // Prints: 50 x = 50; x -= 20; document.write(x + "<br>"); // Prints: 30 x = 5; x *= 25; document.write(x + "<br>"); // Prints: 125 x = 50; x /= 10; document.write(x + "<br>"); // Prints: 5 x = 100; x %= 15; document.write(x); // Prints: 10 </script> </body> </html>