1 00:00:00,000 --> 00:00:04,660 [MUSIC] 2 00:00:04,660 --> 00:00:10,350 Hello world, Andrew here, lifelong learner and JavaScript teacher here at Treehouse. 3 00:00:10,350 --> 00:00:14,330 For most of JavaScript's life, there's been only one way to create or 4 00:00:14,330 --> 00:00:18,400 declare a variable, using the var keyword. 5 00:00:18,400 --> 00:00:21,230 Most JavaScript programmers learned this method and 6 00:00:21,230 --> 00:00:23,330 a lot still use the var keyword, but 7 00:00:23,330 --> 00:00:28,280 some of the behaviors from using var can be problematic or unexpected. 8 00:00:28,280 --> 00:00:31,640 That's why developers of the JavaScript programming language 9 00:00:31,640 --> 00:00:35,260 decided to introduce new ways for creating variables. 10 00:00:35,260 --> 00:00:40,050 The sixth version of JavaScript called ES 2015 or 11 00:00:40,050 --> 00:00:44,520 ECMAScript 2015, introduce two new keywords. 12 00:00:44,520 --> 00:00:46,100 Const and let. 13 00:00:46,100 --> 00:00:49,620 In this workshop, I'll show you how const and let work. 14 00:00:49,620 --> 00:00:54,960 And explain why you'll want to use them instead of var, when declaring variables. 15 00:00:54,960 --> 00:00:55,590 But first, 16 00:00:55,590 --> 00:01:00,870 I just want to mention that const and let work in a similar way to var. 17 00:01:00,870 --> 00:01:05,460 In each case, you use the keyword var, const, or let. 18 00:01:05,460 --> 00:01:09,200 Followed by the name of the variable, an equal sign and 19 00:01:09,200 --> 00:01:12,180 the value you want to put into that variable. 20 00:01:12,180 --> 00:01:16,120 So, when should you use const and when should you use let? 21 00:01:16,120 --> 00:01:17,650 Great questions. 22 00:01:17,650 --> 00:01:20,170 I'll answer them in the next few videos.