Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx11
function instanceOfClass(obj, targetClass) {    if (!obj || typeof obj !== 'object') return false    if (!target.prototype) throw Error    if (Object.getPrototypeOf(obj) === target.prototype) {        return true    } else {        return instanceOfClass(Object.getPrototypeOf(obj), target)    }}OUTPUT
Results will appear here.