Lesson 1 of 0
In Progress

Assignment No. 1 – Ethereum 2 (Batch – 3)

Submission:
Submit all your .js files by compressing them into a ZIP folder and uploading them to the designated submission platform. (You can make separate files or you can do the same in a single JS file).

Grading Criteria:

  • Correctness of syntax.
  • Correct implementation of variable declarations, arithmetic operations, and logical conditions.
  • Clarity and cleanliness of code.

Task – No. 1
Find out if the number is a prime number or not. Hint: Prime number is divisible only by itself and 1 (e.g. 2, 3, 5, 7, 11).

———————————————–

Task- No. 2

  1. Check if a number is even or odd using parseInt.
  2. Check if a number is positive or negative.

———————————————–

Task- No. 3
Check if an alphabet is a vowel or not.

———————————————–

Task- No. 4
Generate triangle output like the below,

*
* *
* * *
* * * *
* * * * *

Hint: It requires a nested loop.

———————————————–

Task No. 5

Steps:

  1. Create an array and fill it with numbers.
  2. Ask for input from the user.
  3. Find an element in the array that is provided by the user.

———————————————–

You cannot copy content of this page