Let's say I have this snippet.
var age = prompt('what is your age?');
if (age === 30)
{
alert('your age is 30');
}
When I entered 30 in the prompt, the if statement doesn't trigger. I suspect it has to do with floating point rounding errors, but don't really know for sure. Would be great to hear your thoughts on this.