JAVASCRIPT: Introduction, DOM, JavaScript into HTML, Tokens, Data Types, Variables.

Опубликовано: 09 Апрель 2026
на канале: C4
1,763
like

#JavaScript is a technique, through which we can add programming in web pages. #JavaScriptProgramming means dynamically we can control ,change, and manipulate things or change things on runtime.
𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭 is DHTML, it means when we are able to change HTML Dynamically. For JavaScript all HTML tags are objects, this concept is known as Document Object Model (DOM).
We can embed JavaScript externally and internally in an HTML file.
JavaScript can be added directly to the HTML file by writing the code inside the script tag . We can place the script tag either inside head or the body tag according to the need, This is known as internal JavaScript.
In case of the external JavaScript, we can write JavaScript code in another file having a .js extension and then link the file inside the head or body tag of the HTML file in which we want to add this code.

In this video, we will also learn how to display data in JavaScript with the help of window.alert(), document.write(), console.log() and innerHTML.
Statements do not need to end with a semicolon, if one statement is placed in one line due to these 2 statements cannot be placed in one line, if we want to place two statements together then we have to use semicolon at the end of the statements.
#JavaScriptVariables can hold different data types like numbers, strings, objects, booleans, undefined and more.

Subscribe for more videos just like this: https://www.youtube.com/c/C4KNOWLEDGE...

Check out some more latest videos:
   / c4knowledgeseekers  

𝐓𝐀𝐁𝐋𝐄 𝐎𝐅 𝐂𝐎𝐍𝐓𝐄𝐍𝐓

00:16 What is JavaScript?
1:28 What is DOM?
2:49 Hierarchy in JavaScript.
3:32 How to embed JavaScript into an HTML page?
5:14 How to embed an external JavaScript file into an HTML page?
7:06 How to display output in JavaScript?
12:55 How to give comments in JavaScript?
14:44 How to write statements in JavaScript?
16:23 Data types and Variables in JavaScript.
22:18 Constant in JavaScript.
23:23 How to see errors in JavaScript?
27:00 How to display output using HTML tag in JavaScript?
34:30 How to print the URL of the page?