Posts

Javascript2

  <script> var a , b ; a = 10 ; b = 20 ; document . writeln ( "Add:" +( a + b )) ; document . writeln ( "<br>Sub:" +( a - b )) ; document . writeln ( "<br>Mul:" +( a * b )) ; document . writeln ( "<br>Div:" +( a / b )) ; document . writeln ( "<br>Module:" +( a % b )) ; document . writeln ( "<br>Incre:" +(++ a )) ; document . writeln ( "<br>Decr:" +(-- b )) ; document . writeln ( "<br>==:" +( a == b )) ; //false document . writeln ( "<br>>:" +( a > b )) ; //false document . writeln ( "<br>>=:" +( a >= b )) ; //false document . writeln ( "<br><:" +( a < b )) ; //true document . writeln ( "<br><=:" +( a <= b )) ; //true document . writeln ( "<br>!=:" +( a != b )) ; //true //&& || ! ...

Javascript1

  Javascript Code console . log ( " TEst Computer" ) ; document . write ( "<h1>Computer</h1>" ) /*var time="10:pm" var TIME="11.Pm" //console.log(time) console.log(TIME)*/ var time ; console . log ( "Time:" + time ) time = "10:pm" ; console . log ( "Time:" + time ) <!DOCTYPE html > <html lang ="en" > <head> <meta charset ="UTF-8" > <title> Title </title> <script src ="test.js" ></script> </head> <body> <!----------This is h1 Tag------------> <h1> Hp Laptop </h1> </body> </html>

Strangerchat