Difference with example

what is the major difference between
console.log vs system.out.println
please clear my doubt

Both are used for printing values. The major difference is console.log is for Javascript and system.out.println is used in Java

1 Like