Westonci.ca offers fast, accurate answers to your questions. Join our community and get the insights you need now. Explore thousands of questions and answers from a knowledgeable community of experts on our user-friendly platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

(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.


Sagot :

Thanks for using our platform. We're always here to provide accurate and up-to-date answers to all your queries. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. We're glad you chose Westonci.ca. Revisit us for updated answers from our knowledgeable team.