228k views
3 votes
(please help)

What is the correct output for the following block of code?

let cars = 5;
if (cars > 0) {
text('We have cars in stock.');
} else {
text('Sorry, no cars in stock.');
}

1. We have cars in stock.
2. We have no cars in stock.
3. Sorry, no cars in stock.
4.We have 5 cars in stock.

User PaladiN
by
3.2k points

1 Answer

3 votes

Answer:48

Step-by-step explanation:

buy more cars

User Projectxmatt
by
3.3k points