Basic Programs
Fundamental JavaScript programs to get started with programming
10 program solutions
Program Solutions
1
Hello World
The classic first program that prints "Hello World" to the console
Beginner
View Solution
2
Display Your Name
Program to display your name using variables
Beginner
View Solution
3
User Input
Program to take input from user using prompt()
Beginner
View Solution
4
Sum of Two Numbers
Program to add two numbers
Beginner
View Solution
5
Swap Two Numbers
Program to swap values of two variables
Beginner
View Solution
6
JavaScript Data Types
Program demonstrating different data types in JavaScript
Beginner
View Solution
7
Arithmetic Operations
Program demonstrating all arithmetic operations
Beginner
View Solution
8
Convert Fahrenheit to Celsius
Program to convert temperature from Fahrenheit to Celsius
Beginner
View Solution
9
Calculate Simple Interest
Program to calculate simple interest
Beginner
View Solution
10
Area and Perimeter of Rectangle
Program to calculate area and perimeter of a rectangle
Beginner
View Solution