Home of web learners

www.webn3rd.com

javascript is interesting to learn

You can run javascript without server in your browser

Lets do a javascript code

<html>
<body><script>alert('JS is awesome'');</script></body>
</html>

If you run this code in browser,you will see an alert

Javascript can run with html,css and other language code

To make your static webpage into dynamic in frontend side you can use javascript

To use javascript,inside you html code,you have to use script tag,you can use javascript in head tag or inside body of your html code,inside this tag you can write javascript code

Javascript have the power to change your html,css code dynamically and with programming

Commenting in javascript is like other programming language

<html>
<body><script>
//This is a single comment
 alert('JS is awesome');
</script></body>
</html>

You can use // for commenting a single line

To make multiple comment you can use /* */ like in below script

<html>
          <body><script>


              /*This is a multiple comment
             This line also included as comment
              */
                alert('JS is awesome'');
          </script></body>
          </html>

webn3rd.com

About webn3rd