-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ce98be
commit 61d706b
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
Exercises-And-Solutions/exercises/22-basic-test-exercise.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
### Week 3 - Test 3 | ||
### Basic Test | ||
|
||
1. Using prompt ask user below questions and then print these values in console | ||
- What is your name | ||
- What is your batch name | ||
- What is your birth year | ||
|
||
Now print name, batch name and age in the console. Let's say if birth year of the user is 1991 then output should be his/her current age 31 years | ||
|
||
2. Print numbers like 3, 6, 9, 12, 15 till number is less than 100 | ||
|
||
3. Difference between truthy and falsy values ? | ||
4. Difference between implicit and explicit type conversion ? | ||
5. Ask user a question "Do you want to study Nodejs"? If user click on OK button then print Yes else print No in the console | ||
6. Take one number. If number is odd and less than 20 then in alert box show Yes and else show No in alert box. | ||
2. Print numbers like 3, 6, 9, 12, 15 until the number is less than 100. | ||
3. Write the differences between truthy and falsy values. | ||
4. Write the differences between implicit and explicit type conversion. | ||
5. Ask user a question "Do you want to study Nodejs"? If user click on "OK" button then print "Yes" else print "No" in the console | ||
6. Take one number. If number is odd and less than 20 then in alert box show "Yes" and else show "No" in alert box. | ||
7. If rating is 5 then print Excellent. If rating is 4 then print Good. If rating is 3 then print Average. If rating is 2 then print Poor. If rating is 1 then print Very Poor else print Invalid rating | ||
8. What is the significance of use strict ? | ||
9. Convert any if else condition to ternary operator. | ||
10. Check if a number is divisible by 13 or not. If yes then check number is also divisible by 4 or not. If both conditions matches then print Yes else print No. | ||
10. Check if a number is divisible by 13 or not. If yes then check number is also divisible by 4 or not. If both conditions matches then print "Yes" else print "No". |