Question: Question 1 What would the output of the code below be ? let amount = 5 ; const applyTax = ( ) = > {

Question 1
What would the output of the code below be?
let amount =5;
const applyTax =()=>{
console.log(amount);
amount += amount *0.10;
}
console.log(amount);
applyTax();
a)55
b)5.5
c)55.5
d)5.55
Question 2
What would the output of the code below be?
let cost =500;
let type = 'House';
if (cost <500|| type === 'House'){
console.log("I'll buy it!");
} else {
console.log("I wont buy it!")
}
a) I'll buy it!
b) I wont buy it!
c) False
d) Undefined
Question 3
What would the output of the code below be?
let cost =500;
let type = 'House';
if (cost <500 && type === 'Apartment){
console.log("I'll buy it!");
}
else {
console.log("I 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!