1 00:00:01,190 --> 00:00:03,620 Welcome in this video. 2 00:00:03,690 --> 00:00:08,960 I will explain what a syntax is. 3 00:00:08,970 --> 00:00:14,890 What is a syntax in programming language syntax. 4 00:00:14,900 --> 00:00:29,430 Basically refers to vocabulary and grammar that is used to construct a program just like with the English 5 00:00:29,430 --> 00:00:30,470 language. 6 00:00:30,570 --> 00:00:40,140 You have to create valid sentences using words and points which means in programming the syntax is a 7 00:00:40,140 --> 00:00:43,070 set of rules that kind to you. 8 00:00:43,110 --> 00:00:44,630 In doing that. 9 00:00:45,200 --> 00:00:54,080 So is a set of rules will guide you as to how you construct your computer programs. 10 00:00:54,300 --> 00:01:05,070 Now every programming language has its own syntax just like American English is different in some aspects 11 00:01:05,430 --> 00:01:15,690 to British English so the syntax is basically a bunch of rules that enables you to construct a valid 12 00:01:15,750 --> 00:01:16,800 format. 13 00:01:17,080 --> 00:01:26,100 And this also includes a combination of the constructions that you use in putting a program together. 14 00:01:26,370 --> 00:01:32,190 So let me show you a basic example of a javascript syntax. 15 00:01:32,370 --> 00:01:34,370 So this is a diverse group. 16 00:01:34,380 --> 00:01:41,290 Syntax is just a basic one and in this example here we've got some key words here. 17 00:01:41,580 --> 00:01:46,370 This word far is basically known as a variable. 18 00:01:46,380 --> 00:01:49,560 It is use as a storage container. 19 00:01:49,560 --> 00:01:58,380 So in this example here I've got a variable called first number and is in the course to assign me the 20 00:01:58,380 --> 00:01:59,870 value of a sermon. 21 00:01:59,930 --> 00:02:05,820 All that means is that this value 7 is going to be stored in this container called first number. 22 00:02:06,050 --> 00:02:15,000 And here the value it which is going to be stored in this container called second number so the the 23 00:02:15,510 --> 00:02:18,930 number first numbers have no names. 24 00:02:19,020 --> 00:02:25,650 I give in to this key word variable is a key word. 25 00:02:25,770 --> 00:02:36,840 I am part of the javascript programming languages and syntax component of javascript programming language. 26 00:02:36,880 --> 00:02:40,760 A poster here is known as an assignment operator. 27 00:02:40,770 --> 00:02:42,930 It's also part of the syntax. 28 00:02:43,000 --> 00:02:46,960 It is used to assign value to whenever you see. 29 00:02:46,960 --> 00:02:57,510 This equals sign in syntax a programming syntax is basically referring to is using that to assign value 30 00:02:57,540 --> 00:03:00,660 is an instruction to assign. 31 00:03:00,660 --> 00:03:08,460 So what this basically is saying is that there's value 7 inside this box called First no value date 32 00:03:08,880 --> 00:03:12,650 inside this box called the second number so this was. 33 00:03:12,720 --> 00:03:17,160 It's an assignment operator or is known as an assignment operator. 34 00:03:17,430 --> 00:03:25,350 In some programming language you don't necessarily have to put my colon after you've declared something 35 00:03:25,620 --> 00:03:26,710 in javascript. 36 00:03:26,720 --> 00:03:29,660 You too once should declare a variable in javascript. 37 00:03:29,790 --> 00:03:38,460 You need to put a semicolon that is part of the javascript syntax so every programming language has 38 00:03:38,460 --> 00:03:44,050 its own way of doing things which is referred to as the syntax. 39 00:03:44,190 --> 00:03:53,580 So the key thing to take away or you see the word syntax is referring to programming languages vocabulary 40 00:03:53,700 --> 00:03:54,420 and grammar. 41 00:03:54,420 --> 00:04:04,680 Basically what this means is basically a set of rules of how your programs are constructed. 42 00:04:04,680 --> 00:04:07,060 Thanks for watching and bye for now.