Write JavaScript code for the following:(Any 2)
a. To calculate the quotient and remainder of two numbers 19 and 7.
b. To print “Client-Side Scripting” and “Server-Side Scripting” in two different lines on
the screen.
c. To display the area and perimeter of a square.
Share
a.
const a = 19;
const b = 7;
log('Quotient - ' + a / b);
log('Remainder - ' + a % b);
b.
log('Client-Side Scripting');
log('Server-Side Scripting');
c.
const side = 5;
log('Area - ' + side * side);
log('Perimeter - ' + 4 * side);