In the book Eloquent Javascript is the following sentence:
“We need that conversion because the result of prompt is a string value, and we want a number.”
How do I know what Type does a function returns? Is this something you have to memorize, or there is a logic or an easy way to it?
Cheers
Barnabas