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