let x = process.argv[2] || "abc";
I am new to javascript. I don't think || is a boolean OR operator here. What does this line mean? Why using OR on some strings? Does this mean if process.argv[2] is null, then assign "abc" to x?
let x = process.argv[2] || "abc";
I am new to javascript. I don't think || is a boolean OR operator here. What does this line mean? Why using OR on some strings? Does this mean if process.argv[2] is null, then assign "abc" to x?