-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01-intro.js
55 lines (49 loc) · 2.66 KB
/
01-intro.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// ==================================
// Intro Js |
// ==================================
// ==================================================================
// 1-introduction of JavaScript
//
// JavaScript is a programming language that adds interactivity to your website.
// This happens in games, in the behavior of responses when buttons are pressed or
// with data entry on forms; with dynamic styling; with animation, etc.
// This course deals with version ES6 of JavaScript.
//
// ==================================================================
// 2. what is javascript?
// JavaScript is a scripting, high-level, interpreted programming language.
// JavaScript is a programming language that adds interactivity to your website.
// JavaScript is a lightweight, interpreted programming language.
// JavaScript is client-side and server-side programming language.
// JavaScript is an Object-based Scripting Language.
// JavaScript is a prototype-based scripting language.
// JavaScript is a dynamic scripting language.
// JavaScript is a weakly typed scripting language.
// JavaScript is a case-sensitive scripting language.
// JavaScript is not a compiled language, but it is a translated language.
// JavaScript is an open and cross-platform scripting language.
// JavaScript is a popular client-side scripting language.
// JavaScript is an interpreted programming language.
// JavaScript is a text-based programming language.
// JavaScript's syntax is loosely based on Java's.
// .js is the extension of JavaScript files.
// JavaScript is widely used for client-side validation.
// Js is most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages.
// In the world of programming, JavaScript is the most popular language.
//
// ==================================================================
// 3. Where to write javascript code?
// We can write Js code in 3 ways:
// (i) Inside HTML file (inline) like this: <script>Js code</script>
// (ii) Inside HTML file (internal) like this: <script src="js file"></script>
// (iii) External Js code (inside external file)
//
// ------------------------------------------------------------------
// Js Inside HTML file
// We can write Js code inside HTML file like this:
// <script>document.write("Hello World");</script>
// and we can write in two ways:
// (i) Inside head tag like this: <head><script>Js code</script></head>
// (ii) Inside body tag like this: <body><script>Js code</script></body>
// ------------------------------------------------------------------
// ==================================================================================