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>
- 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