-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
101 lines (67 loc) · 2.39 KB
/
app.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// ==== Chapter 01 ====
// ==== Chapter 01 Q 1 ====
// alert('Error! Please enter a valid password.')
// ==== Chapter 01 Q 2 ====
// alert('Wellcome to JS land\nHappy Coding.')
// ==== Chapter 01 Q 3 ====
// alert('Welcome to js Land...')
// ==== Chapter 01 Q 4 ====
// var message = 'Hello... I can run JS through my werb browers console.';
// alert(message)
// ==== Chapter 02 ====
// ==== Chapter 02 Q 1 2 3 4 ====
// var userName = 'Haseeb Ur Rehman'
// var age = '16 years old';
// var info = 'Certified Web and app development';
// alert(userName);
// alert(age);
// alert(info);
// ==== Chapter 02 Q 5 ====
// var food = 'PIZZA\nPIZZ\nPIZ\nPI\nP'
// alert(food)
// ==== Chapter 02 Q 6 ====
// var email = 'My email address is [email protected]'
// alert(email)
// ==== Chapter 02 Q 7 ====
// var book = 'I am trying to leran from the book A smarter\nway to learn javascript'
// alert(book)
// ==== Chapter 02 Q 8 ====
// var htmlContent = 'Hye! I can write Html content Throught JavaScipt'
// alert(htmlContent)
// ==== Chapter 02 Q 9 ====
// var jsBoder = '“▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬”'
// alert(jsBoder)
// ==== Chapter 03 ====
// ==== Chapter 03 Q 1 ====
// var age = 16;
// alert("i am " + age + " years old");
// ==== Chapter 03 Q 2 ====
// var hisHer = 2;
// alert("you have visted this site " + hisHer + " times");
// ==== Chapter 03 Q 3 ====
// var birthYear = 2007;
// alert("My birth year " + birthYear);
// ==== Chapter 03 Q 4 ====
// var visitorsName = "Haseeb Ur Rehman";
// var productTilte = "on XYZ Clothing store"
// var quantity = " ordered 5 T-shirt(s)"
// alert(visitorsName + '' + quantity + '' + productTilte);
// ==== Chapter 04 Q 1 ====
//1.Declare 3 variables in one statement.
// a, b, c, = 10
// 2.Declare 5 legal & 5 illegal variable names
// === legal Name ===
// var userName = "Haseeb Ur Rehman";
// var my_alue = 50;
// var myNumber = 8;
// var $myCast = "Rajput Arain";
// var data1 = 100;
// === illegal Name ===
// var 123 = '';
// var @userName = "";
// var username = "";
// 3.Display this in your browser
// document.write("Variable names can only contain,number, $ and, _. for Example : $my_firstName")
// Document.write("Variables must begin with a $ or _, or. For example $name, _name or name")
// document.write("Variable names are case Sensitive")
// document.write("Variable names should not be JS keywords")