4Geeks logo
4Geeks logo
About us

Learning library

For all the self-taught geeks out there, here our content library with most of the learning materials we have produces throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Machine Learning Engineering (16 weeks)

Full-Stack Software Developer

Search from all Lessons

Social & live learning

The most efficient way to learn: Join a cohort with classmates just like you, live streams, impromptu coding sessions, live tutorials with real experts, and stay motivated.

From zero to getting paid as a developer, learn the skills of today and tomorrow. Boost your professional career and be hired by a technology company.

Start Coding

← Back to Exercises

Learn Javascript Arrays and Loops Interactive

Star

Get Instant Access

Enter your information and receive instant access

Difficulty

easy

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

12 hrs

Technologies

Looping in Javascript Tutorial & Exercises

Dozens of looping exercises to sharpen your looping skills with for, forEach, map, filter, looping a dictionary, looping bidimentional arrays, adding conditions to loops, finding an element, and more!

Local Installation

  1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 14+:
$ npm i learnpack -g
$ learnpack plugins:install learnpack-node
  1. Download this particular exercise using learnpack and cd into the folder:
$ learnpack download javascript-arrays-exercises
$ cd javascript-arrays-exercises

Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.

  1. Start the tutorial/exercises by running the following command at the same level were your bc.json file is:
1$ npm i jest@24.8.0 -g 2$ learnpack start

Note: The exercises have automatic grading but its very rigid and string, my recomendation is to ignore the tests and use them only as a recomendation or you can get frustrated.

How are the exercises organized?

Each exercise is a small react application containing the following files:

app.jsRepresents the entry javascript file that will be executed by the computer
README.mdContains exercise instructions
test.jsContains the testing script for the exercise (you don't have to open this file)

Contributors

Thanks to these wonderful people (emoji key):

  1. Alejandro Sanchez (alesanchezr), contribution: (coder) πŸ’» (idea) πŸ€”, (build-tests) ⚠️ , (pull-request-review) πŸ‘€ (build-tutorial) βœ… (documentation) πŸ“–

  2. Paolo (plucodev), contribution: (bug reports) πŸ›, contribution: (coder), (translation) 🌎

This project follows the all-contributors specification. Contributions of any kind are welcome!

Get Instant Access

Enter your information and receive instant access

Difficulty

easy

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

12 hrs