2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > Coder Shiyar</ title >
5
+ < meta charset ="UTF-8 ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
+
8
+ </ head >
9
+ < body >
10
+
11
+
12
+ < script src ="script.js "> </ script >
13
+ </ body >
14
+ </ html >
Original file line number Diff line number Diff line change
1
+ // Coder Shiyar - https://youtube.com/codershiyar
2
+ // -----------------------------------------------------------------------------
3
+ // JSON JavaScript Object Notation
4
+ // يتم استخدام جي سون لتبادل البيانات بين المتصفح والخادم
5
+ // جي سون خفيف الوزن اثناء تبادل بيانات
6
+
7
+ var json = { "name" :"Coder Shiyar" ,
8
+ "age" : 20 ,
9
+ "skilles" :[ "HTML" , "CSS" ] ,
10
+ "data" :{ name :"shiyar" , password :"1234" }
11
+
12
+ } ;
13
+
14
+ console . log ( json . data . password ) ;
15
+
16
+
17
+
18
+
19
+
20
+ // JSON Values
21
+ // In JSON, values must be one of the following data types:
22
+
23
+ // a string
24
+ // a number
25
+ // an object (JSON object)
26
+ // an array
27
+ // a boolean
28
+ // null
29
+ // In JavaScript values can be all of the above, plus any other valid JavaScript expression, including:
30
+
31
+ // a function
32
+ // a date
33
+ // undefined
0 commit comments