0% found this document useful (0 votes)
22 views2 pages

js3 1

The document outlines a practical assignment for a JavaScript course at ITM Baroda University, focusing on performing basic arithmetic operations. It includes a code snippet demonstrating addition, subtraction, multiplication, division, and modulus operations with example values. The output of the operations is also provided, showing the results of the calculations.

Uploaded by

rushitapre090207
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

js3 1

The document outlines a practical assignment for a JavaScript course at ITM Baroda University, focusing on performing basic arithmetic operations. It includes a code snippet demonstrating addition, subtraction, multiplication, division, and modulus operations with example values. The output of the operations is also provided, showing the results of the calculations.

Uploaded by

rushitapre090207
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ITM (SLS) Baroda University

School of Computer Science, Engineering and Technology


Diploma [Semester 3]
Subject: JavaScript

PRACTICAL - 3
Aim: Write a Java Script program to perform Arithmetic
Operation . Also give one line definition for these
operators(+,-,*,/,%) .
Code:
let a=10;
let b=20;
console.log("a+b=",a+b);
console.log("a-b=",a-b);
console.log("a*b=",a*b);
console.log("a/b=",a/b);
console.log("a%b=",a%b);

Name: Rushikesh Tapre Enrollment No: 23C11138


ITM (SLS) Baroda University
School of Computer Science, Engineering and Technology
Diploma [Semester 3]
Subject: JavaScript

Output:
a+b= 30
a-b= -10
a*b= 200
a/b= 0.5
a%b= 10

Name: Rushikesh Tapre Enrollment No: 23C11138

You might also like