Concise Body Arrow Functions

im working on the concise body arrow functions exercise but when i use it in node.js it returns [Function: squareNum] does anyone know why? this is for Javascript

Hi, welcome to the forums.

Any chance you can post the code which you’re asking about? Makes it easier for us to see what’s responsible for the behaviour that you’re asking about. :slight_smile:

There’s a guide on how to correctly post formatted code here: How do I format my code?

nevermind i did a bit of research and i realized that when i log the function to the console i wasn’t using the parentheses after the function: what i was doing: console.log(callMyNightSky) (callMyNightSky is the function). what i had to do: console.log(callMyNightSky()) i had to put in parentheses after the function

1 Like