There are the 3 Ways to Print “hello world” Example with basic Fundamental a new programming language to beginners.
- 1. Using console.log()
- 2. Using alert()
- 3. Using document.write()
- document.write(“Hello World”);
- echo “Hello World”;
- response.write(“Hello World”);
- (“Hello World”);
- All Above
Basically document.write is same as Console.Write in Windows or Response. Write in online Web Application in PHP code.
Example 1: Using console.log()
// the hello world program console.log('Hello World');
Example 2: Using alert()
// the hello world program alert("Hello, World!");
Example 3: Using document.write()
// the hello world program document.write('Hello, World!');
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.