Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level3, Lesson 3 javascript increment operator not showing answer.

when i try to incerment p = 12 using console.log(p++) is shows the same value 12 in output. it doesn't increment the value. Can anyone help me to submit this one....
by

2 Answers

kshitijrana14
Try this one

let x = 5;
let y = 2;
// write code here
let z = x + y;
console.log(z);

let a = 200;
let b = 25;
// write code here
let c = a / b;
console.log(c);

let p = 12;
// write code here
p++;
console.log(p);
prashanth9
Try this it will work......

// write code here
let p = 12;
q = p++;
console.log(p);

Login / Signup to Answer the Question.