how to check how many instance of a class in javascript code example Example: js class check if new instance new Date() instanceof Date; // => true