Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#javascript #object #string #syntax
Question

The other way to access an individual character on a screen is to treat the string as

[...]  return 'cat' [ 1 ] ; // returns "a" 
Answer
an array-like object, where individual characters correspond to a numerical index:

Tags
#javascript #object #string #syntax
Question

The other way to access an individual character on a screen is to treat the string as

[...]  return 'cat' [ 1 ] ; // returns "a" 
Answer
?

Tags
#javascript #object #string #syntax
Question

The other way to access an individual character on a screen is to treat the string as

[...]  return 'cat' [ 1 ] ; // returns "a" 
Answer
an array-like object, where individual characters correspond to a numerical index:
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
The other way to access an individual character on a screen is to treat the string as an array-like object, where individual characters correspond to a numerical index: return 'cat' [ 1 ] ; // returns "a"

Original toplevel document

String - JavaScript | MDN
ethod, or extracting substrings with the substring() method. Character access There are two ways to access an individual character in a string. The first is the charAt() method: return 'cat'.charAt(1); // returns "a" <span>The other way (introduced in ECMAScript 5) is to treat the string as an array-like object, where individual characters correspond to a numerical index: return 'cat'[1]; // returns "a" For character access using bracket notation, attempting to delete or assign a value to these properties will not succeed. The properties involved are neither writable nor configurabl

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.