profile image

にし

論理演算子の基礎
JavaScriptで以下のコードを実行したとき、コンソールで表示される値として正しいのはどれでしょうか?
const num = null;
const or = num || "Hello";
console.log(or);