Hello World in JavaScript
by
Last month I introduced some basic PHP code which allowed text to be printed to the screen. If you do not have PHP enabled, you can do the same thing with JavaScript! The simple script shown below will once again display the classic “Hello World” text to the screen. Place the below script in your HTML page where you would like the text displayed.
<script language="javascript" type="text/javascript">
document.write('<b>Hello World</b>');
</script>
Did You Enjoy this Post? Subscribe to Web Dev Notes. It's Free!
Leave a Reply