0

Bug hunt didn't have a bug??

I got given this: ```js let number = 5; console.log(typeof(num)); ``` The 'bug' is that the parenthesis aren't necessary? But this isn't a bug as it wouldn't introduce any error or issues...

27th May 2025, 6:07 PM
Matthew James
Matthew James - avatar
1 ответ
+ 6
Hey Matthew James, Yes you totally nailed it! The parentheses aren't the bug. The real sneaky bug is that it says num instead of number. num doesn't exist, so that's where it breaks! Correction is here.. let number = 5; console.log(typeof number); or console.log(typeof(number));
27th May 2025, 6:42 PM
Darpan kesharwani
Darpan kesharwani - avatar