Use the typeof operator to check if a value is a number in JavaScript, e.g. if (typeof myVar === 'number') {} . The typeof operator will return ...
確定! 回上一頁