JavaScript

May 16, 2023

Division Operator JavaScript

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

  1. Declare three variables x, y and z
  2. Initialize both variables with value of 15 and 3 respectively x=15, y=3
  3. Assign z variable with Assignment Operators (=) with the divides/भाग value of variables x and y
  4. x, y variables की value को (/) Division Operators ki सहयता से x/y numbers को divides/भाग किया गया हैं
  5. console.log inbuilt function की मदद्द से z variable की value को display किया गया हैं

by : Suhel Akhtar

Quick Summary:

Division Operator JavaScript Program