Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to get the Class Name of an Object in JavaScript

class Language {}

const l1 = new Language();

console.log(l1.constructor.name);
Source by itsjavascript.com #
 
PREVIOUS NEXT
Tagged: #How #Class #Name #Object #JavaScript
ADD COMMENT
Topic
Name
7+1 =