(SOLVED) My problem on Javascript Function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

(SOLVED) My problem on Javascript Function

(SOLVED) What happened? The console said "error" on this opening curly bracket '{'. But I thought i put it right. This is the code: https://sololearn.com/compiler-playground/WLfzKxr927eK/?ref=app

15th Dec 2023, 5:35 AM
W-UD
2 Answers
+ 6
Awesome you could solve your own problem! That's an important skill to have in coding.
15th Dec 2023, 8:02 AM
Ausgrindtube
Ausgrindtube - avatar
+ 4
I got it now. I forgot the "function" keyword.
15th Dec 2023, 6:07 AM
W-UD