<!DOCTYPE html> <html> <title>Web Page Design</title> <head> <script> //task 1 document.write(5==5); document.write("<br>"); document.write(5==4); document.write("<br>"); //task 2 document.write(0!=0); document.write("<br>"); document.write(1!=2); document.write("<br>"); //task 3 document.write(10>10); document.write(10>=10); document.write(20<20); document.write(20<=20); document.write(30!=30); //task 4 var urname="Lexi"; document.write(urname=="Lexi"); document.write("<br>"); document.write(urname=="Lexi"); document.write("<br>"); document.write(urname=="LEXI"); document.write("<br>"); document.write(urname=="jeffree star"); //task 5 var urname="Lexi"; document.write(urname!="Lexi"); document.write("<br>"); document.write(urname!="Lexi"); document.write("<br>"); document.write(urname!="LEXI"); document.write("<br>"); document.write(urname!="jeffree star"); //task 6 var urname=prompt("Enter your name!"); if(urname =="brit"){ document.write("hello brit!") } else{ document.write("hello stranger!") } document.write("<br><br>") </script> </head> <body> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more