get the class name as a value in javascript code example Example: get name of class javascript myObj.constructor.name