I am not sure why JS is acting so weird on this. Function name type error : [This works perfectly fine][1]


[Function for the above example][2]


[This produce a type error][3]


[Function for the above example][4]


[Error message][5]


Both of these method is the same except for the underscore on the function name. Is someone out there kindly tell me what is the error. Thanks !


  [1]: https://i.stack.imgur.com/yAceq.png
  [2]: https://i.stack.imgur.com/Wb6sX.png
  [3]: https://i.stack.imgur.com/4Ix8w.png
  [4]: https://i.stack.imgur.com/3q0f4.png
  [5]: https://i.stack.imgur.com/uyt92.png