-
For converting string to array we can use ______________ method.
-
- toLowerCase()
- charAt()
- charCodeAt()
- split()
- None of these
Correct Option: A
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.