WEBVTT

00:00.710 --> 00:06.050
This is the lecture where you will have your first coding task, we have all discussed some basic things

00:06.050 --> 00:06.800
in JavaScript.

00:07.160 --> 00:09.920
You already have some knowledge and let's use it in practice.

00:10.730 --> 00:14.090
This is a simple task which is based on multiple conditions.

00:14.540 --> 00:17.210
Imagine that we have two students, John and Nick.

00:17.780 --> 00:19.760
They've got this course on exam.

00:20.390 --> 00:27.380
The exam had a lower passing limit and we wonder if both of them or one of them pass an exam or failed.

00:28.470 --> 00:34.620
In order to do this task, you will need to use conditional statements with logical operators who will

00:34.620 --> 00:37.310
have seven steps which will guide and help you.

00:37.770 --> 00:44.310
At first you need to create variables for this course of students and set of values as 80 and 45.

00:45.150 --> 00:50.180
Then you need to create another variable which will represent the lower limit for passing the exam.

00:50.520 --> 00:51.900
And it is 51.

00:52.930 --> 00:59.080
Third step is to ride the condition in its statements, which will check if both students have passed

00:59.080 --> 01:02.110
an exam and then log the results in council.

01:03.120 --> 01:09.150
Next, you need to use LC statements in order to check if one of these students has passed an exam and

01:09.450 --> 01:16.680
again log the results in council after that, in order to display in council that both students have

01:16.680 --> 01:19.440
failed, you will need to use all statement.

01:20.710 --> 01:26.560
Last step is to find out which student has passed an exam and display in Castle the student's night

01:26.560 --> 01:31.390
with this relevant score to the and you need to test all the possible cases.

01:31.780 --> 01:38.030
I mean, if both students pass, if John passed and he failed, then if Nick passed and John Felt and

01:38.030 --> 01:39.970
they lost, both students felt.

01:40.980 --> 01:46.350
For doing that, you can simply change the values of discourse which were set initially as eight and

01:46.350 --> 01:46.950
four or five.

01:48.610 --> 01:54.490
If you are already familiar with JavaScript, then it will be very easy for you, but if you have trouble

01:54.490 --> 01:57.600
with doing this task, don't worry, you will see the solution of it.

01:58.150 --> 02:02.140
But I would like to recommend to try your best and find somehow the solution.

02:03.040 --> 02:04.940
All right, let's go ahead.

02:05.410 --> 02:05.920
Good luck.
