ITI COPA (Computer Operator & Programming Assistant) –
Basic Java Script Programs
1. Program to Display “Hello World”
π Purpose:
Used to understand basic JavaScript output.
2. Program to Add Two Numbers
π Concept Used: Variables, arithmetic operator
3. Program to Take Input from User and Display It
π Concept Used: prompt() function
4. Program to Check Even or Odd Number
π Concept Used: if–else, modulus operator
5. Program to Find Largest of Two Numbers
π Concept Used: comparison operator
6. Program to Print Numbers from 1 to 10
π Concept Used: for loop
7. Program to Find Factorial of a Number
π Concept Used: loop, multiplication
8. Program to Display Array Elements
π Concept Used: array, loop
9. Program to Display Current Date
π Concept Used: Date object
10. Program Using Function to Add Two Numbers
π Concept Used: function, return statement
No comments:
Post a Comment
Give your valuable feedback