For converting string to array we can use ______________ method.

For converting string to array we can use ______________ method.
A. charAt()
B. charCodeAt()
C. split()
D. toLowerCase()
 
Answer: c
Explanation: For converting any string to an array we use split() method. E.g. var tr=”t,o,I,k,l”; tr.split(“,”); tr.split(“|”); tr.split(“ ”); charAt returns a character from the given index, charCodeAt() returns Unicode of character at the given index. toLowerCase() method converts input string into lower case string.
 

Tìm kiếm

Back
Top