OOP & DOM let Dom = Dom || {}; Dom = { checkValType(val) { let typeString = Object.prototype.toString.call(val); switch (typeString) { case '[object String]': return 'String'; case '[object Boolean]': return 'Boolean'; case '[object Function]': retur…