Previous Next JS Alert Box <!DOCTYPE html> <html> <head> <title>JavaScript</title> <script> var a = 40; var b = 20; if(a > b){ alert(b + a); }else{ alert("Value of B : " + b); } </script> </head> <body> </body> </html> Previous Next