Js-各種基本タイプ間の変換
6071 ワード
let num = 24
let str1 = num.toString()
let str2 = num + ''
let s = '24'
let num1 = Number(s)
let num2 = s - 0
let num3 = parseInt(s)
let num = 24
let numArr = num.toString().split('').map(Number)
let num = 24
let strignArr = num.toString().split('')
let numArr1 = [1,8,24]
let numArr2 = ['1','8','24']
let num1 = numArr1.join('') - 0
let num2 = Number(numArr2.join(''))
let num3 = parseInt(numArr1.join(''))
let numArr = [1,8,24]
let strArr = numArr.map(String)
let str='Franklin'
let arr1 = str.split('')
let arr2 = Array.from(str)