typeof
Which assertion holds?
Which of these values are falsy?
function func(arg) {
if (!arg) {
throw new Error('Missing argument');
}
return 'ok';
}
Which of these function calls throw errors?
function func(obj) {
if (!obj.prop) {
throw new Error('Missing property `prop`');
}
return 'ok';
}
Which of these function calls throw errors?
Which of the following expressions are true
(the others are false
)?