javascriptの練習
問題文
(true)
true
(graph)
graph
(confirmdialog)
confirmdialog
(async await)
async await
(length)
length
(click)
click
(string.indexOf(searchValue))
string.indexOf(searchValue)
(array.findindex(v => v % 2 === 0))
array.findindex(v => v % 2 === 0)
(parseint(str))
parseint(str)
(object.key object["key"])
object.key object["key"]
(str.replace(reg, match => leetMap[match]))
str.replace(reg, match => leetMap[match])
(/[abc]/g new RegExp("[abc]","g"))
/[abc]/g new RegExp("[abc]","g")
(Object.keys(leetMap).join("|")))
Object.keys(leetMap).join("|"))
(array.filter(v => v % 2 === 0))
array.filter(v => v % 2 === 0)
(array.sort((a, b) => a - b))
array.sort((a, b) => a - b)
(array.shift())
array.shift()
(str.slice( 0, 5 ))
str.slice( 0, 5 )
(str.substr( 0, 5 ))
str.substr( 0, 5 )
(str.slice( -5 ))
str.slice( -5 )
(str.substr( -5, 5 ))
str.substr( -5, 5 )
(str.slice(3))
str.slice(3)
(str.substr(3))
str.substr(3)
(str.slice( 0, -3 ))
str.slice( 0, -3 )
(str.substr( 0, str.length - 3 ))
str.substr( 0, str.length - 3 )
(const a = new Set(array))
const a = new Set(array)