Question from the Javascript test

What will be displayed when running the following code? ``` let val1 =0; let myst1 = val1 || 2; let myst2 = val1 && 3; let myst3 = val1 ?? 4; console.log(myst1, myst2, myst3); ```

Hard

Consider the follow code

let val1 = 0;
let myst1 = val1 || 2;
let myst2 = val1 && 3;
let myst3 = val1 ?? 4;
console.log(myst1, myst2, myst3);

what will be displayed?

Author: AnneStatus: PublishedQuestion passed 62 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!