Functions in JS newbie

Functions in JS newbie
0.0 0


//Hey dumb question but Im just trying to make something that prints a statement “hello world!” when I call the variable greet
"Make a simple function called greet that returns the most-famous “hello world!”.

Is the question

const greet = () =>
{console.log(‘hello world!’)};


//and it doesnt print hello world

Im trying to match the format in here


It’s working for me.


I’ll probably figure it out eventually, they probably want something specific done