I’m following Mosh in the video but instead of the results being Fizz or Buzz, it is coming out as undefined. Hovering over “const output” it says “const output: void”.
Using VScode.
Can anyone explain this issue?
I’m following Mosh in the video but instead of the results being Fizz or Buzz, it is coming out as undefined. Hovering over “const output” it says “const output: void”.
Using VScode.
Can anyone explain this issue?
Mosh’s fizzBuzz function is collapsed, meaning it has code in it but it’s not visible, your fizzBuzz function is empty.