Division Operator JavaScript
Division Operator
On this page
Division Operator
Program to use Division Operator JavaScript Language
let x = 15;
let y = 3;
let z;
z = x / y;
console.log("z = ", z);
Output
z = 5
Steps Description
- Declare three variables x, y and z
- Initialize both variables with value of 15 and 3 respectively x=15, y=3
- Assign z variable with Assignment Operators (=) with the divides/भाग value of variables x and y
- x, y variables की value को (/) Division Operators ki सहयता से x/y numbers को divides/भाग किया गया हैं
- console.log inbuilt function की मदद्द से z variable की value को display किया गया हैं