0 votes
121 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 134 views
asked Oct 9, 2022 in Javascript by MrRam (2.0k points)
0 votes
1 answer 184 views
asked Apr 3, 2022 in Javascript by Doubtly (98.9k points)
0 votes
1 answer 112 views
asked May 14, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 172 views
0 votes
1 answer 114 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 97 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

557 users

...