Posted inJavaScript
How to Check type of an Object in JavaScript
https://youtu.be/TFIYHa-7Lm8 const d = new Date(); if (d instanceof Date) { console.log("object is a Date type"); } const num = 50; if (num instanceof Number) { console.log("Number type"); } const…