Where is mistakes in my code? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Where is mistakes in my code?

Help needed for this It’s very common to have "Preloader" component, especially in multifunctional apps and websites. Create a function that will output "Loading" to the console. Output Loading My Code 👇 function showPreloader() { alert("Loading"); } showPreloader()

15th Feb 2021, 7:35 AM
Md Imraj Hossain
Md Imraj Hossain - avatar
4 Respuestas
+ 1
alert() doesn't output to the console, but creates an alert dialog box with the output. Try using console.log("Loading");
15th Feb 2021, 7:41 AM
ChaoticDawg
ChaoticDawg - avatar
+ 3
function showPreloader() { //complete the function console.log("Loading") } //call the function showPreloader()
26th Jun 2021, 9:45 AM
Abiel M
Abiel M - avatar
+ 1
function showPreloader() { //complete the function console.log("Loading") } //call the function showPreloader() Good Luck
25th Jan 2022, 8:19 AM
Muhammad Alif Deva Rizqon
Muhammad Alif Deva Rizqon - avatar
0
function showPreloader() { console.log("Loading"); } showPreloader();
26th Sep 2021, 7:07 AM
GUNASEKARA H.G.D.A.P. (CST18022)
GUNASEKARA H.G.D.A.P. (CST18022) - avatar