1 00:00:00,940 --> 00:00:08,290 Now, although CSX isn't the program language loud JavaScript, for example, be Java, CSX also has 2 00:00:08,290 --> 00:00:15,040 variables and the variables are relatively new in access and they actually existed back in session and 3 00:00:15,040 --> 00:00:17,250 access, not back in session. 4 00:00:17,410 --> 00:00:21,370 He because Cessna's says it's actually still exists and it's pretty powerful. 5 00:00:21,760 --> 00:00:24,720 And I would suggest learning it if he had the chance. 6 00:00:24,730 --> 00:00:27,550 Well, not the chance, the time, but yeah. 7 00:00:28,120 --> 00:00:29,790 So variables, what are they. 8 00:00:30,250 --> 00:00:37,090 But they're actually custom properties of success, sometimes referred to as success variables or cascading 9 00:00:37,090 --> 00:00:37,750 variables. 10 00:00:38,170 --> 00:00:42,880 And they are actually entities defined by the success alter or otherwise you. 11 00:00:43,540 --> 00:00:47,440 They contain specific values to be reused throughout the document. 12 00:00:49,400 --> 00:00:56,270 So what is the basic usage of a variable they are set using custom property notations for in this example, 13 00:00:56,270 --> 00:01:02,240 we set the primary color to white and the second we call to black and they can be accessed using the 14 00:01:02,240 --> 00:01:09,050 VA function and within parentheses, we'll just call upon what we want that variable to be. 15 00:01:09,200 --> 00:01:15,170 In our example down here, we have an H3 with the color of the of the primary color, which would be 16 00:01:15,200 --> 00:01:19,730 white and the back on color of the secondary color, which would be black. 17 00:01:21,130 --> 00:01:27,340 Declaring a custom property is done using a custom property name that begins with a double hyphen, 18 00:01:27,940 --> 00:01:29,380 as you can see right here. 19 00:01:31,450 --> 00:01:38,040 And a property value that can be any valued excess value like any other property. 20 00:01:38,080 --> 00:01:43,240 This is actually written inside a Rousset, which will take a look at later on in our example. 21 00:01:43,690 --> 00:01:47,720 Now, a complex Web site has very large amounts of success. 22 00:01:47,740 --> 00:01:54,760 For example, the same color might be used in hundreds of different places requiring global search and 23 00:01:54,760 --> 00:01:57,050 replaced if the color needs to change. 24 00:01:57,100 --> 00:02:03,250 Now, custom properties allow for a value to be stored in one place, then referred to in multiple other 25 00:02:03,250 --> 00:02:03,780 places. 26 00:02:04,390 --> 00:02:08,260 An additional benefit is semantic identifiers. 27 00:02:09,230 --> 00:02:12,200 OK, enough chitchat about variables, let's try out some.