0 votes
129 views
in Javascript by (2.0k points)
edited

How to write a hello world example of JavaScript?

1 Answer

0 votes
by (2.0k points)
edited

A simple example of JavaScript hello world is given below. You need to place it inside the body tag of HTML.

<script type="text/javascript">
document.write("JavaScript Hello World!");
</script>
 

Related questions

0 votes
1 answer 144 views
asked Oct 9, 2022 in Javascript by MrRam (2.0k points)
0 votes
1 answer 187 views
asked Apr 3, 2022 in Javascript by Doubtly (98.9k points)
0 votes
1 answer 116 views
asked May 14, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 178 views
0 votes
1 answer 121 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 101 views
asked Jun 11, 2022 in Python by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...