Subscribe
Duration : 1 Year
Author : Web Development Tutorials
Price : $15
Tecwallet Funds available: $0
LogIn Forgot password? Create account
OR
If you are subscribed user, I will answer any of your query related to this course with in 24 hrs.
Strings need to be enclosed within quotes as shown above, however numbers must only be written as normal numbers, without any quotes surrounding them
List of all available comparison operators:
> Greater than
< Less than
<= Less than or equal to
>= Greater than or equal to
=== Equal to
!== Not equal to
Lets quickly practice with these in console using Google Chrome
if they are at least 16 years old, we tell them:
“Great! you can proceed with signup” and if they are less than 16 years old, we give the output:
“Sorry, you need to wait till you are 16”
Lets work out this program now using if statement…
1. 100/10 evaluates to 10
2. 5*(3+1) evaluates to 20
3. 45*(200+300) evaluates to 22500
var greet = function(name)
{
console.log(‘Hello’ + name);
};
for (var i = 1; i < 11; i = i + 1)
{
console.log(i);
}
Comments ( To Post Your Comment Please Login First! )