Given two expressions var1 and var2. What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean ?
Choose 2 answers:
Refer to the code below:
Let textValue = '1984';
Which code assignment shows a correct way to convert this string to an integer?
A developer has two ways to write a function:
Option A:
function Monster(){
this.growl = ()=>{
console.log('Grr!');
}
}
Option B:
function Monster(){};
Monster.prototype.growl = ()=>{
console.log('Grr!');
}
After deciding on an option, the developer creates 1000 monster objects.
How many growl methods are created with Option A and Option B?
Refer to the code below:
Line 05 causes an error.
What are the values of greeting and salutation once code completes?
A developer has an ErrorHandler module that contains multiple functions.
What kind of export be leverages so that multiple functions can be used?