check if an object is an instacne of a class js code example Example: js class check if new instance new Date() instanceof Date; // => true