To check if a variable is a string in JavaScript, use the typeof operator, e.g. typeof a === 'string' . If the typeof operator returns "string" , then the ...
確定! 回上一頁