WEBVTT 00:06.260 --> 00:11.570 In this chapter you're going to learn new features in iOS 6 which were designed to make your programming 00:11.570 --> 00:13.880 life easier. 00:13.880 --> 00:20.990 These features they touch on a variety of aspects in the javascript language and have chosen to combine 00:20.990 --> 00:28.160 them in one chapter to make the course structure really easy to navigate through these features they 00:28.160 --> 00:36.200 touch on data types like strings they touch on objects functions arrays and so on. 00:36.200 --> 00:39.890 So first we're going to start with templates Liberals 00:42.950 --> 00:43.460 first. 00:43.470 --> 00:51.660 We're gonna go back to iOS 5 and have a quick quick example where you had to concatenate strings so 00:52.200 --> 00:54.420 let's define a couple of variables. 00:54.630 --> 00:55.110 First name 00:58.510 --> 00:59.380 and last name 01:03.400 --> 01:05.120 saving is five. 01:05.330 --> 01:07.710 If you want it to log. 01:07.820 --> 01:08.500 Hello. 01:08.510 --> 01:11.450 Followed by the first name and then the last name. 01:11.450 --> 01:12.620 You have to do something like this. 01:16.370 --> 01:20.430 Using the plus operator right. 01:31.110 --> 01:33.530 And this worked perfectly. 01:34.480 --> 01:44.450 Now in E6 there is a new feature which will make your programming experience a lot easier as expected 01:45.260 --> 01:48.720 and this feature is called the templates literally. 01:48.740 --> 01:57.410 So instead of concatenate in strings using a B plus operator you actually write the whole string using 01:57.410 --> 01:59.210 template later liberals. 01:59.390 --> 02:01.810 So you'll find 02:05.030 --> 02:12.650 this character of the bottom left hand side of your keyboard. 02:13.980 --> 02:16.410 Close to the control button. 02:17.060 --> 02:25.420 So inside the template is liberals you can write your whole sentence like this. 02:25.440 --> 02:25.930 Hello 02:28.600 --> 02:32.710 First Name Last Name like this. 02:33.660 --> 02:43.320 Now you go back to your variables with a variable first name he's gonna be surrounded with curly brackets 02:43.950 --> 02:47.850 and you place a dollar sign just before it's on the same thing. 02:47.850 --> 02:55.990 Same thing happens to this one any place at all a sign just before and now if you try this it works 02:56.260 --> 02:57.230 just like that's one. 02:57.430 --> 03:01.140 So you can see like this since X now is a lot easier. 03:01.450 --> 03:06.140 Now there is something else that template strings will help you do in iOS 6. 03:06.160 --> 03:10.510 That's where it's when it comes to multi line strings. 03:10.540 --> 03:21.950 So for example in years 5 if you wanted to create a string it's quick text 5 where you've got a line 03:21.950 --> 03:22.300 return. 03:22.610 --> 03:24.290 So you have to do some something like this. 03:24.290 --> 03:34.600 So here is a new line and where you wanted to start a new line you had to place a backslash and for 03:34.630 --> 03:36.290 a new line. 03:36.580 --> 03:37.300 Now in iOS 03:42.680 --> 03:48.620 in iOS 6 things are a lot easier. 03:48.620 --> 03:53.180 You can do this using templates laterals so 03:56.840 --> 03:58.280 instead of I'm gonna use const 04:05.020 --> 04:18.500 and this sentence can go inside templates liberals like this and rather than using the box light and 04:19.410 --> 04:29.760 we can just do a line return like this and it's going to render us expected with a line written so you 04:29.760 --> 04:39.990 can see that template literally is a good example showing how E6 makes writing code a lot easier than 04:39.990 --> 04:41.110 before. 04:41.130 --> 04:45.270 There are many other features which we will explore in the coming videos.