#3 JavaScript Tutorial | First Hello World Program
In this tutorial post we will be running our first JavaScript program which is a basic Hello World program where we ill simple print Hello World(or any other text) on the browser.
The 2 softwares needed to start of with JavaScript are -
Text Editor : I will be using Visual Studio Code Text Editor which is highly recommended by many specially for Javascript, however you can use any other text editor like Notepad++ or Sublime text etc.
Browser : Of course a browser is needed to load the HTML document and run the JavaScript so I will be using Google Chrome browser. You can use any browser of your choice as most modern browsers have JavaScript enabled by default.
There are 2 ways to include JavaScript in your HTML Document -
Embedding JavaScript in the same HTML document
Using External JavaScript file and linking it in your HTML document.
1. Embedding JS in HTML document -
As you can see in the code below, we are embedding JS code using the script tag of HTML. Usually when the JavaScript code is small it is directly embedded in the HTML document, however, it is not recommended to embed large sized JS code directly in the HTML document as the code becomes un-organized.
2. External JavaScript File -
As you can see below there are 2 file - one the actual HTML document and other a separate external javascript file (demo.js). This demo.js file is linked in the HTML document using the script tag with the use of the attribute src as shown in the code below. When the javascript code is large, it is highly recommended to use a separate external file to keep the HTML doc and the JS code organized.
For Program code and more resources checkout this article - https://simplesnippets.tech/first-hello-world-program-in-javascript/
Video by - Tanmay Sakpal
Simple Snippets Channel link - https://www.youtube.com/simplesnippets
Видео #3 JavaScript Tutorial | First Hello World Program канала Telusko
The 2 softwares needed to start of with JavaScript are -
Text Editor : I will be using Visual Studio Code Text Editor which is highly recommended by many specially for Javascript, however you can use any other text editor like Notepad++ or Sublime text etc.
Browser : Of course a browser is needed to load the HTML document and run the JavaScript so I will be using Google Chrome browser. You can use any browser of your choice as most modern browsers have JavaScript enabled by default.
There are 2 ways to include JavaScript in your HTML Document -
Embedding JavaScript in the same HTML document
Using External JavaScript file and linking it in your HTML document.
1. Embedding JS in HTML document -
As you can see in the code below, we are embedding JS code using the script tag of HTML. Usually when the JavaScript code is small it is directly embedded in the HTML document, however, it is not recommended to embed large sized JS code directly in the HTML document as the code becomes un-organized.
2. External JavaScript File -
As you can see below there are 2 file - one the actual HTML document and other a separate external javascript file (demo.js). This demo.js file is linked in the HTML document using the script tag with the use of the attribute src as shown in the code below. When the javascript code is large, it is highly recommended to use a separate external file to keep the HTML doc and the JS code organized.
For Program code and more resources checkout this article - https://simplesnippets.tech/first-hello-world-program-in-javascript/
Video by - Tanmay Sakpal
Simple Snippets Channel link - https://www.youtube.com/simplesnippets
Видео #3 JavaScript Tutorial | First Hello World Program канала Telusko
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![#4 JavaScript Tutorials | Statements and comments](https://i.ytimg.com/vi/vWX2eoi3bOc/default.jpg)
![#2 JavaScript Tutorial | What is Dom? | Document Object Model](https://i.ytimg.com/vi/_GxpmQ54aqg/default.jpg)
![JavaScript For Beginners #1 - Environment Setup and "Hello World!"](https://i.ytimg.com/vi/ykoxwrm0Seo/default.jpg)
![#32 Debugging in JavaScript using Chrome Dev tools | Console Log Method](https://i.ytimg.com/vi/WmVEddplwbo/default.jpg)
![](https://i.ytimg.com/vi/Pr76Po63qVk/default.jpg)
![#6 JavaScript Tutorial | Variables & Data Types](https://i.ytimg.com/vi/Hrd3SfCCXZw/default.jpg)
![Learn JavaScript - Full Course for Beginners](https://i.ytimg.com/vi/PkZNo7MFNFg/default.jpg)
![Setting up VSCode and Hello World in Javascript](https://i.ytimg.com/vi/D3CDmRjPdcE/default.jpg)
![](https://i.ytimg.com/vi/BOT6Xt9Z2To/default.jpg)
![Where to write JavaScript | Where to execute JavaScript Code | JavaScript Tutorial #3](https://i.ytimg.com/vi/5N7Tq9e1U_0/default.jpg)
![#7 JavaScript Tutorial | Operators](https://i.ytimg.com/vi/ULNJSTSJc7s/default.jpg)
![#15 JavaScript Tutorial | Scope of Variables | Global vs Local](https://i.ytimg.com/vi/nAWAnn9y8yw/default.jpg)
![Build Tic Tac Toe With JavaScript - Tutorial](https://i.ytimg.com/vi/Y-GkMjUZsmM/default.jpg)
![JavaScript Tutorial for Beginners: Learn JavaScript in 1 Hour [2020]](https://i.ytimg.com/vi/W6NZfCO5SIk/default.jpg)
![#16 JavaScript Tutorial | Introduction to Array](https://i.ytimg.com/vi/SrT8-9I4WnE/default.jpg)
![Java #19 IO Streams,FileInputStream,FileOutputStream,FileReader - CSE1007](https://i.ytimg.com/vi/2634nKEDmek/default.jpg)
![#20 Taking Input from user in JavaScript | TextBox](https://i.ytimg.com/vi/lThuZY0-S_8/default.jpg)
![Learn JavaScript in 7 minutes | Create Interactive Websites | Code in 5](https://i.ytimg.com/vi/LFa9fnQGb3g/default.jpg)
![Visual Studio Code: Javascript, Node.js Hello World](https://i.ytimg.com/vi/DsH-fizHkcY/default.jpg)
![JavaScript Programming | In One Video](https://i.ytimg.com/vi/TLlGhogq56Y/default.jpg)