+ 1

When i watch JavaScript videos at YouTube I don't see those stuffs in your code bits but it functions how

I don't know if there are two JavaScripts

24th Jan 2021, 9:35 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar
17 Respuestas
+ 5
alert works only in web codes, not nodeJS... alert is designed to quick output results to users. console.log is designed to quick output debug results (to developers). that's why you've seen primarly (annoying) alert...
24th Jan 2021, 9:57 PM
visph
visph - avatar
+ 3
console.log is valid javascript... even in nodeJS. you could find some in sololearn code bts ;)
24th Jan 2021, 9:52 PM
visph
visph - avatar
+ 2
You can try both console.log and alert in your browser. alert displays a pop up box at the top of your page with the text you enter. console.log displays what you type in the developer console (you press f12 to see the console)
24th Jan 2021, 9:58 PM
Mohamad Kamar
Mohamad Kamar - avatar
+ 2
or it will be displayed automatically at screen bottom in app ;)
24th Jan 2021, 10:00 PM
visph
visph - avatar
+ 2
Visph thanks
24th Jan 2021, 10:02 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar
+ 2
So was this question about alert() Vs console.log() ?
25th Jan 2021, 3:36 AM
Sonic
Sonic - avatar
+ 1
Perhapes you are seeing javascript frameworks such as Jquery?
24th Jan 2021, 9:38 PM
Ollie Q
Ollie Q - avatar
+ 1
So those web code bits on sololearn is not JavaScript
24th Jan 2021, 9:39 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar
+ 1
are you sure that's a video about javascript? not java?
24th Jan 2021, 9:42 PM
visph
visph - avatar
+ 1
Yeah I know it's JavaScript
24th Jan 2021, 9:45 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar
+ 1
would you share the video link? it could help ;)
24th Jan 2021, 9:46 PM
visph
visph - avatar
+ 1
the code bits on sololearn are original javascript and think of Jquery as another way of writing javascript
24th Jan 2021, 9:48 PM
Ollie Q
Ollie Q - avatar
+ 1
I've never seen console.log in sololearn code bits
24th Jan 2021, 9:50 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar
+ 1
Ollie Q it may be jQuery, another library/framework, typescript... depending on context...
24th Jan 2021, 9:51 PM
visph
visph - avatar
+ 1
Visph just search JavaScript free code camp on YouTube
24th Jan 2021, 9:51 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar
+ 1
I've never seen that before on sololearn code bits I only see alert
24th Jan 2021, 9:54 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar
0
Sonic no actually
26th Jan 2021, 8:44 PM
Kwabena Karikari Affum
Kwabena Karikari Affum - avatar