By the end of this project you will understand how data is stored in and retrieved from arrays in JavaScript. You will use the Notepad++ editor to write JavaScript code to work with arrays. In addition to creating and populating an array, you will learn multiple methods of accessing data from arrays using JavaScript code. Arrays are a great way to store multiple values of a similar type and are commonly used in programming.
Introduction to JavaScript Arrays
Instructor: Judy Richardson
Sponsored by Louisiana Workforce Commission
Recommended experience
What you'll learn
Explain the advantages of repetition programming.
Create and populate an array with JavaScript code.
Access elements from an array using JavaScript.
Details to know
Add to your LinkedIn profile
Only available on desktop
See how employees at top companies are mastering in-demand skills
Learn, practice, and apply job-ready skills in less than 2 hours
- Receive training from industry experts
- Gain hands-on experience solving real-world job tasks
- Build confidence using the latest tools and technologies
About this Guided Project
Learn step-by-step
In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:
Compare examples of variables with simple values and variables that contain arrays.
Write the JavaScript code to create an array and populate the array with elements.
Use element indexes to access each of the elements in a JavaScript array and display them on a web page.
Write a JavaScript for loop with a length property to read through the elements in an array and display them on a web page.
Code a JavaScript for/of loop that reads through the elements in an array and displays them on a web page.
Recommended experience
Completion of Introduction to JavaScript or a basic knowledge of JavaScript and HTML is recommended.
5 project images
Instructor
Offered by
How you'll learn
Skill-based, hands-on learning
Practice new skills by completing job-related tasks.
Expert guidance
Follow along with pre-recorded videos from experts using a unique side-by-side interface.
No downloads or installation required
Access the tools and resources you need in a pre-configured cloud workspace.
Available only on desktop
This Guided Project is designed for laptops or desktop computers with a reliable Internet connection, not mobile devices.
Why people choose Coursera for their career
You might also like
Coursera Project Network
Coursera Project Network
Coursera Project Network
Coursera Project Network
Open new doors with Coursera Plus
Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy