WEBVTT 00:00:07.720 --> 00:00:14.220 This video we're going to learn how to create objects using the javascript keyword knew. 00:00:14.320 --> 00:00:18.870 All right so this creates a new file and call it 00:00:21.480 --> 00:00:25.580 objects using new 00:00:28.650 --> 00:00:29.150 and 00:00:32.440 --> 00:00:41.730 just imports the source code from the previous file and change the title to objects 00:00:48.120 --> 00:00:49.080 using new 00:00:51.940 --> 00:00:54.990 . 00:00:55.230 --> 00:01:05.610 OK so we're going to create an object this time using the new javascript keyword without setting any 00:01:05.670 --> 00:01:08.940 promises or without setting any properties. 00:01:08.940 --> 00:01:14.820 And then we can define these properties in other statements later on. 00:01:14.820 --> 00:01:21.420 So we need one first statement where we define the objects. 00:01:22.350 --> 00:01:37.050 So let's call our objects my phone again and this time we're not we're not going to use any curly brackets 00:01:37.050 --> 00:01:37.220 . 00:01:37.260 --> 00:01:47.680 We're not going to say it's any properties but we're going to use new objects and then parentheses. 00:01:48.420 --> 00:01:58.080 OK so what we're doing here we defining the objects and then we can define properties for these objects 00:01:58.230 --> 00:02:00.990 with their corresponding values. 00:02:01.080 --> 00:02:06.270 So let's define the make sense 00:02:12.510 --> 00:02:15.950 to something for instance this time. 00:02:16.790 --> 00:02:30.160 OK let's define the model set it to Galaxy S4. 00:02:30.630 --> 00:02:32.850 It also lets you fill in 00:02:36.130 --> 00:02:40.800 the words he says he 2:12 00:02:44.050 --> 00:02:49.460 and the color. 00:02:54.240 --> 00:02:59.230 OK so let's check what we get in the console window. 00:02:59.320 --> 00:03:00.250 So all 00:03:03.860 --> 00:03:06.000 we need to refresh to life preview 00:03:11.250 --> 00:03:14.310 and click on if it will get the console 00:03:17.530 --> 00:03:18.920 refresh. 00:03:19.640 --> 00:03:20.110 OK. 00:03:20.430 --> 00:03:29.280 So you can see the objects displayed in the console here with all the properties with their corresponding 00:03:29.280 --> 00:03:31.420 values. 00:03:31.420 --> 00:03:33.450 OK so 00:03:36.120 --> 00:03:49.820 this time we declared the objects first and then we defined the properties with that vollies. 00:03:49.830 --> 00:03:57.470 So this will give the same result as the literal definition so we can change any property. 00:03:57.660 --> 00:04:03.930 So let's change the one and see for instance 2 0 and display 00:04:10.770 --> 00:04:13.500 the objects again and see what we gets 00:04:14.490 --> 00:04:18.450 . 00:04:19.030 --> 00:04:23.780 So we can see that the warranty has changed to zero. 00:04:23.790 --> 00:04:24.500 All right. 00:04:24.660 --> 00:04:29.460 So in the next video we're going to learn how to create objects using MS structures