1 00:00:00,570 --> 00:00:01,950 Hello and welcome. 2 00:00:02,010 --> 00:00:08,840 In this lecture we'll be looking at the song syntax the Jason. 3 00:00:08,850 --> 00:00:19,090 Tyred is a subset of the jabb us scroop syntax so it is derived from the javascript syntax. 4 00:00:19,090 --> 00:00:28,670 Jason also has a set of rules that must be followed in the syntax. 5 00:00:29,040 --> 00:00:33,500 So these are the JS on syntax rules. 6 00:00:33,500 --> 00:00:34,960 The dates are. 7 00:00:36,680 --> 00:00:42,050 In JS on mods have his name paired value. 8 00:00:42,260 --> 00:00:52,030 That is the name object must have a name and there was also have a value so there must be in pairs. 9 00:00:52,160 --> 00:01:01,420 The data is separated by commerce so where you have several pairs you separate them with a comma. 10 00:01:01,860 --> 00:01:11,780 The objects are enclosed in curly braces so whereby you have objects defined in your case on syntax 11 00:01:12,410 --> 00:01:16,580 you must enclose them in curly braces. 12 00:01:17,540 --> 00:01:28,200 A raise whereby you use harrie's to house your data they are enclosed in square brackets so the Rays 13 00:01:28,350 --> 00:01:32,090 are house or enclosed in square brackets. 14 00:01:32,160 --> 00:01:38,140 So anywhere you see square brackets he made Sonn syntax. 15 00:01:38,170 --> 00:01:47,610 Note that you are looking out and Harry also any where you fi core Li curly braces you are looking at 16 00:01:48,140 --> 00:01:50,160 enclosed objects. 17 00:01:50,490 --> 00:01:57,030 So these are the rules that should be followed in creatine. 18 00:01:57,060 --> 00:02:06,310 JS So on syntax I have got the notepad plus plots a text editor. 19 00:02:06,670 --> 00:02:15,100 I am just going to show an example of the name value in Jason. 20 00:02:15,420 --> 00:02:24,080 So the JS JS on syntax the date is written in has a name slash value pair. 21 00:02:24,150 --> 00:02:33,310 So in name value pair most consists of field name which must be in double quotes followed by a colon 22 00:02:33,800 --> 00:02:38,170 then followed by the value for example. 23 00:02:38,170 --> 00:02:39,440 So the first name. 24 00:02:46,400 --> 00:02:52,350 Well years income or case here jabb us krypton's to use kamil case come all cases when the first time 25 00:02:52,480 --> 00:02:58,430 is like case and then the first letter of a name is upper case. 26 00:02:58,470 --> 00:03:01,070 So this is come or case. 27 00:03:01,320 --> 00:03:09,590 So first name separate that with a call on hand then I'll see 28 00:03:11,840 --> 00:03:13,950 Alex. 29 00:03:15,230 --> 00:03:19,700 So the value must be separated or enclosing quotes. 30 00:03:19,700 --> 00:03:20,950 The quotes here. 31 00:03:24,750 --> 00:03:28,430 And then also the valley must have input. 32 00:03:29,010 --> 00:03:38,390 So this is how you will illustrate in name value pair in Jason. 33 00:03:39,270 --> 00:03:49,560 So the first name here is the field is the field name followed by calon and then the value is this here 34 00:03:50,130 --> 00:03:51,190 called Alex. 35 00:03:51,180 --> 00:03:52,260 I've given it a value. 36 00:03:52,280 --> 00:03:58,560 First name is the field followed by a colon and then the value with Jason names. 37 00:03:58,560 --> 00:04:07,050 You require double quotes whereas javascript doesn't even double digits on syntax is derived from jabba's 38 00:04:07,050 --> 00:04:17,640 group way in writing your choice on syntax the filename you have to enclose it in double quotes javascript. 39 00:04:17,640 --> 00:04:22,370 You don't put a sign you must close in double quotes. 40 00:04:22,830 --> 00:04:27,120 So this is an illustration of in name value. 41 00:04:27,450 --> 00:04:35,710 So the name here must have a value so every place syntax wherever there is a name he must have a value 42 00:04:35,730 --> 00:04:36,470 the most. 43 00:04:36,480 --> 00:04:44,250 Com in pairs and the name values in dates on are surrounded by double quotes. 44 00:04:44,250 --> 00:04:50,980 J song can have other values like no or integer or strings. 45 00:04:51,060 --> 00:04:55,410 Strings are double quotes so this here is a string. 46 00:04:55,440 --> 00:04:58,640 A text is referred to as a string. 47 00:04:58,980 --> 00:05:05,760 Jason or key in bullion values can also be put in a boolean means. 48 00:05:05,760 --> 00:05:17,100 True or false or sorge is on values can be in a tree and the tree is multiple values represented as 49 00:05:17,100 --> 00:05:18,590 one variable. 50 00:05:18,900 --> 00:05:24,090 Object also can be he saw on value. 51 00:05:25,020 --> 00:05:30,680 Let me illustrate an example of a G Sonn object. 52 00:05:30,750 --> 00:05:33,510 So this is how you specify this object. 53 00:05:33,510 --> 00:05:41,060 It must be enclose in curly braces saw we can use the same code here. 54 00:05:41,130 --> 00:05:42,920 Just copy that chord. 55 00:05:43,970 --> 00:05:51,310 And bring it here are just close that pin curly braces so you can leave. 56 00:05:51,310 --> 00:06:02,160 Curly braces and then a right so this is known as a J sun object now because of the curly braces. 57 00:06:02,530 --> 00:06:07,830 Okay no it is high ways got first name. 58 00:06:08,490 --> 00:06:17,180 If I wanted to include another value like last name I can just come up there and then typing 59 00:06:19,710 --> 00:06:26,610 last name then enclose that in double quotes. 60 00:06:27,950 --> 00:06:39,520 Very important and then the value of a comma and then the value kludge for put jumps. 61 00:06:41,190 --> 00:06:46,450 OK so this is a JS sawn object. 62 00:06:46,630 --> 00:06:53,370 See the first name value first name field and then the values aleck's. 63 00:06:53,490 --> 00:06:58,090 So you separate the values with a comma so that's a comma. 64 00:06:58,410 --> 00:07:02,390 The next field last name comma. 65 00:07:02,850 --> 00:07:06,080 Sorry colon and then the value. 66 00:07:06,270 --> 00:07:10,630 So decathlon separates the field name from the value. 67 00:07:10,890 --> 00:07:15,930 Remember that colon separates the field name from the value and the names. 68 00:07:15,960 --> 00:07:20,210 In the case on chords must be enclosed inside. 69 00:07:20,340 --> 00:07:22,310 Double quote. 70 00:07:22,320 --> 00:07:26,870 Next we are going to create a G sun. 71 00:07:27,100 --> 00:07:28,300 A re. 72 00:07:28,350 --> 00:07:29,880 Sue to do that. 73 00:07:30,000 --> 00:07:42,400 So for example I wanted to create some trees of individual stuff so I'll just say stuff. 74 00:07:44,560 --> 00:07:45,790 That will be the field. 75 00:07:45,820 --> 00:07:57,160 I spread that would along with double quotes Surrey and then the value will now be Larry. 76 00:07:57,160 --> 00:08:04,490 So to specify an error you need the square brackets and they separate them. 77 00:08:04,490 --> 00:08:15,980 So what I'll do I will copy this object inside the array. 78 00:08:17,060 --> 00:08:19,580 Okay this will now be one value. 79 00:08:21,550 --> 00:08:23,020 Separate that with a comma 80 00:08:25,760 --> 00:08:26,990 and then. 81 00:08:30,410 --> 00:08:35,620 This be a second term that to me the timing 82 00:08:38,860 --> 00:08:41,690 and then put a third. 83 00:08:42,890 --> 00:08:47,810 Kasal means if you notice that it's the this is the square brackets. 84 00:08:48,020 --> 00:08:50,900 And it then closes the array. 85 00:08:50,920 --> 00:09:00,570 So the name of the variable is staff and it contains what Paul values which are known as a. 86 00:09:00,620 --> 00:09:04,970 So I just need to change the names folks name here. 87 00:09:04,970 --> 00:09:13,070 I can't just come here and say the last name I'll say James 88 00:09:18,040 --> 00:09:19,940 come here and say. 89 00:09:21,660 --> 00:09:23,720 Right Jane. 90 00:09:27,710 --> 00:09:28,710 Last name. 91 00:09:28,790 --> 00:09:30,730 No. 92 00:09:31,680 --> 00:09:32,190 When. 93 00:09:32,190 --> 00:09:32,990 Right. 94 00:09:33,060 --> 00:09:37,050 And you separate the values with a comma. 95 00:09:37,310 --> 00:09:44,730 So this is the lesson that we value so are the values you separate the common apart from the last value. 96 00:09:44,990 --> 00:09:46,590 So this is for value. 97 00:09:46,610 --> 00:09:51,440 Kumar second value command third value you know common. 98 00:09:51,830 --> 00:09:59,480 So this objet staff contains an array with three. 99 00:10:00,050 --> 00:10:10,290 So each of these values here are objects of this variable here. 100 00:10:10,340 --> 00:10:21,890 So in this example here the object stuff is an hour tree that contains three objects each of the object 101 00:10:21,980 --> 00:10:29,100 is a record of a person with a first name and a last name. 102 00:10:30,020 --> 00:10:31,790 In this ledger. 103 00:10:31,820 --> 00:10:38,310 We had a look at the syntax in Jason how to create. 104 00:10:38,690 --> 00:10:40,860 We looked at the syntax rules. 105 00:10:40,880 --> 00:10:45,000 We also created examples using the name value. 106 00:10:45,010 --> 00:10:49,370 Let me say some object we create any case an object. 107 00:10:49,370 --> 00:10:52,000 We also created an ID. 108 00:10:52,010 --> 00:10:57,610 Jason Terry thank you so much for your time. 109 00:10:57,620 --> 00:11:02,000 Please feel free to contact me if you have any questions. 110 00:11:02,030 --> 00:11:04,410 I'll be more than happy to help. 111 00:11:04,520 --> 00:11:05,570 Take care. 112 00:11:05,570 --> 00:11:06,460 Bye for now.