// The Or operator in Javascript is 2 vertical lines = ||
//Example
var firstnumber = 10;
var secondnumber = 20;
//The Or operator in action
if(firstnumber > 20 || secondnumber< 10) {
}
// "or" logical operator in JS: ||
// An example
const John = {age: 19}
const Luke = {age: 17}
if (John.age >= 18 || Luke.age >= 18) console.log('Someone is 18+')
else console.log('No one is 18+')
// store a reference to our file handle
let fileHandle;
async function getFile() {
// open file picker
[fileHandle] = await window.showOpenFilePicker();
if (fileHandle.kind === 'file') {
// run file code
} else if (fileHandle.kind === 'directory') {
// run directory code
}
}