GaramYoongaramyoon.hashnode.devยทJul 15, 2024Determining Return Values (Using the Console)const number = Number(prompt('How many people?')); if(number){ } When the user clicks "Cancel" in prompt(), it returns null. Since Number(null) results in 0, number is set to 0. This behaviour can be observed directly in the console. Before understa...JavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.