• Sunday , 5 July 2020

JavaScript Tutorial-6 IF ELSE

Code Canyon



JavaScript Tutorial-1 Getting Started:https://youtu.be/RN9qau8jHG4
JavaScript Tutorial-2 For Loop:https://youtu.be/uxIQYa2kH8I
JavaScript Tutorial-3 Strings:https://youtu.be/ZM7lRM7WSeE
JavaScript Tutorial-4 Patterns (Part-1):https://youtu.be/x8qVLNIk4Yc
JavaScript Tutorial-5 Patterns (Part-2):https://youtu.be/NBiTBZXuKTs

Amazon FunZone Reward:https://www.amazon.in/b/ref=sxts_snpl_1_0_1231256d-79d1-4f5a-817d-04629bfa7d06?node=14351766031&pd_rd_w=oKzCo&pf_rd_p=1231256d-79d1-4f5a-817d-04629bfa7d06&pf_rd_r=E45P6DXQP76JVQWE1GMH&pd_rd_r=bbc99bbf-c056-469d-b4a2-f87576235b26&pd_rd_wg=FH400&qid=1589800367

IF ELSE
if-else is used for conditionally rendering any data.
syntax:-
if(condition)
{
//body1 //if the condition is true this body1 will be executed
}
else
{
//body2 // if the condition is false the body2 will be executed
}

1.Write a js program to find if the number is an even or odd number.
2.Print “Pass” if a student scored more then 40 marks,”fail” if he/she scored less then 40 and “First Division” if he/she scored more then 60 marks.
3.Given n a input, Print “Barny” if the number is divisible by 4 or Print “Robin” if the number is divisible by 3.

Original source

3d Ocean

Related Posts

2 Comments

  1. honey shree
    May 24, 2020 at 21:09

    Keep it up🖒

  2. honey shree
    May 24, 2020 at 21:09

    Awesome👌👌

Leave A Comment

You must be logged in to post a comment.