CS133JS Beginning Programming: JavaScript

Arrays: Comparison of Arrays and Strings

Topics by Week 
1. Intro to JavaScript programming6. Arrays
2. Functions, Operators and Expressions7.Objects and Object Constructors
3. Conditional Statements: if and switch8. Web Page I/O
4. Repetition: while, do while, and for9. Regular Expressions
5. Midterm Check-Point10. Review

Table of Contents


Ways in Which Strings are Like Arrays

Declaration and Initialization

Array and String Index Operations

Get a value or element at an index location

Get the length

Add a value or element to the end

 

Get the index location of a value

Reference

JavaScript Strings on W3Schools

String on Mozilla Developer Network


Creative Commons License Beginning JavaScript Lecture Notes by Brian Bird 2018, revised are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.