Question: Question 1 What would the output of the code below be ? let amount = 5 ; const applyTax = ( ) = > {
Question
What would the output of the code below be
let amount ;
const applyTax
console.logamount;
amount amount ;
console.logamount;
applyTax;
a
b
c
d
Question
What would the output of the code below be
let cost ;
let type 'House';
if cost type 'House'
console.logIll buy it;
else
console.logI wont buy it
a I'll buy it
b I wont buy it
c False
d Undefined
Question
What would the output of the code below be
let cost ;
let type 'House';
if cost && type 'Apartment
console.logIll buy it;
else
console.logI wont buy it
a I'll buy it
c True
b I wont buy it
d Undefined
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
