+ 1

console.log() v.s. System.out.println

When i first got into using Java, i was taught to display outputs using “console.log()” instead of “System.out.println” is there a difference and should i switch over? Edit: Thanks Lisa, I understand now that they’re 2 separate languages with different phrases for output.

25th Apr 2024, 11:40 AM
Joker
Joker - avatar
1 Réponse
+ 3
Javascript and Java are 2 DIFFERENT LANGUAGES. Do not confuse Javascript and Java.
25th Apr 2024, 11:45 AM
Lisa
Lisa - avatar