参考答案:三种方法(typeof、constructor、Object. prototype. toString. call() )
解析:
// ① typeof
typeof('123') === "string" // true
typeof '123' === "string" // true
// ②constructor
'123'.constructor === String // true
// ③ Object.prototype.toString.call()
Object.prototype.toString.call('123') === '[object String]' // true