Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago