Home
Search
Basic
If-Else
Looping
About
LEARN BASIC OF JAVA SCRIPT
Start Learning
Basic (Practice Session)
Swap
Square
Rectangle
Circle
WAP to accept 2 numbers and swap them without using a third variable
Enter First Number
Enter Second Number
Result After Swapping
Submit
Reset
WAP to accept the value of one side of a square and find the area and perimeter
Enter Side of Square
Area and Perimeter of Square
Submit
Reset
WAP to accept length and breadth of a rectangle and find the area and perimeter
Enter Length of Rectangle
Enter Breadth of Rectangle
Area and Perimeter of Rectangle
Submit
Reset
WAP to accept radius of circle and find area and circumference
Enter Radius of Circle
Area and Circumference of Circle
Submit
Reset
Start your practice here
main.js
Output
//Write Your Code Here... //WAP to swap two numbers console.log(a = 5, b = 10); [a, b] = [b, a]; console.log(a, b);
Run Code