+ 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
17 ответов
+ 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...
+ 3
console.log is valid javascript... even in nodeJS.
you could find some in sololearn code bts ;)
+ 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)
+ 2
or it will be displayed automatically at screen bottom in app ;)
+ 2
Visph thanks
+ 2
So was this question about alert() Vs console.log() ?
+ 1
Perhapes you are seeing javascript frameworks such as Jquery?
+ 1
So those web code bits on sololearn is not JavaScript
+ 1
are you sure that's a video about javascript? not java?
+ 1
Yeah I know it's JavaScript
+ 1
would you share the video link? it could help ;)
+ 1
the code bits on sololearn are original javascript and think of Jquery as another way of writing javascript
+ 1
I've never seen console.log in sololearn code bits
+ 1
Ollie Q
it may be jQuery, another library/framework, typescript... depending on context...
+ 1
Visph just search JavaScript free code camp on YouTube
+ 1
I've never seen that before on sololearn code bits I only see alert
0
Sonic no actually