-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (65 loc) · 1.86 KB
/
index.html
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title>object and primitive strings</title>
<script language = "javascript" type = "text/javascript" src = "strings.js"></script>
</head>
<body>
<center>
<h2>Strings</h2>
<h3>Set Object</h3>
<input type = "text" id = "str_obj">
<br>
<br>
<h3>Set Primitive</h3>
<input type = "text" id = "str_prm">
<br>
<br>
<h2>Operations</h2>
<button type = "button" onclick = "concatenate()">Concatenate</button>
<br>
<ul style = "display:inline-block">
<li id = "con"></li>
</ul>
<br>
<br>
Position:<input type = "number" id = "pos" style = "width: 3em;">
<button type = "button" onclick = "extract()">Extract</button>
<br>
<ul style = "display:inline-block">
<li id = "extr"></li>
</ul>
<br>
<br>
<button type = "button" onclick = "upperC()">Uppercase</button>
<br>
<ul style = "display:inline-block">
<li id = "upc_prm"></li>
</ul>
<h2>Watch Out!</h2>
<button type = "button" onclick = "typof()">Typeof</button>
<br>
<ul style = "display:inline-block">
<li id = "tpo_obj"></li>
<li id = "tpo_prm"></li>
</ul>
<br>
<br>
Object a and object b have the same string value!
<br>
<br>
<button type = "button" onclick = "example1()"> a === b </button>
<button type = "button" onclick = "example2()"> a == b </button>
<br>
<ul style = "display:inline-block">
<li id = "result_one"></li>
<li id = "result_two"></li>
</ul>
<br>
<br>
For more explanation please visit -
<a href = "https://github.com/Incrementis/Javascript-object-and-primitive-strings-/wiki"> object and primitive strings Wiki</a>
<center>
</body>
</html>