how to check what type of class an object is in js code example Example: how to check which class a object is from if (obj instanceof C) { //your code }