JavaScript Alert Box

JavaScript Alert Box Alert Box is actually to display a message or value, you can perform arithmetic operation, condition etc, Example1: <!DOCTYPE html> <html> <body> <script> alert(” Welcome to JavaScript”); </script> </body> </html> Output : Welcome to JavaScript Example2: <!DOCTYPE html> <html> <body> <script> var a=10; var b=20; alert(a+b); </script> </body> </html> Output: 30 Exampl3: Continue reading