Skip to content

Commit

Permalink
Update 22-basic-test-exercise.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sajidhamdard authored Mar 14, 2024
1 parent 7ce98be commit 61d706b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Exercises-And-Solutions/exercises/22-basic-test-exercise.md
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".

0 comments on commit 61d706b

Please sign in to comment.