How to run Javascript and Javascript basic codes

Who to write javascript 

Javascript must be write under <script> teg Like below

<script>

write your code here

</script>

  1. Below is Javascript basic code

<script>
document.write(“Hello World”);
</script>

2. This code will print “Hello world” on your html page.

We can also use HTML tags in

Document.write(“<i>Hello World</i>”)

this will your text italic font

Leave a Reply

Your email address will not be published. Required fields are marked *