How do I print out values of an object in javascript


i tried using the console.log(objectname); but it gives me the error error: cannot find symbol
symbol: variable console
location: class Dog
1 error


console.log() is javascript, System.out.println() is java.

java and javascript are two very different languages.


thank you am trying to learn both by picking object oriented concepts from java