When i watch JavaScript videos at YouTube I don't see those stuffs in your code bits but it functions how
17 Answers
New AnswerI don't know if there are two JavaScripts
1/24/2021 9:35:18 PM
Kwabena Karikari Affum17 Answers
New Answeralert 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...
console.log is valid javascript... even in nodeJS. you could find some in sololearn code bts ;)
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)
the code bits on sololearn are original javascript and think of Jquery as another way of writing javascript
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message