Code Challenge 24.2 ā€œLoadingā€ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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