Code Challenge 24.2 “Loading” | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code Challenge 24.2 “Loading”

function showPreloader() { //complete the function return ("Loading"); } showPreLoader(); //call the function Here’s my code for the challenge and it won’t work. I’ve also replaced return with alert and console.log and it still won’t execute. Any help will be much appreciated!

29th Nov 2021, 5:56 PM
Nick Carothers
3 Answers
+ 5
If you use return then you have to print returned value otherwise use console.log to print inside function.
29th Nov 2021, 6:14 PM
A͢J
A͢J - avatar
+ 2
console.log(showPreloader());
29th Nov 2021, 6:47 PM
Kashyap Kumar
Kashyap Kumar - avatar
+ 1
Thank you for the help!
30th Nov 2021, 12:23 PM
Nick Carothers