Repeat A String, Repeat A String, freeCodeCamp Review Basic Algorithm Scripting lesson 8

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=xVZEnmIbSys



Duration: 4:21
1,267 views
17


In this challenge we are given a function which takes in two arguments. The first argument is a screen and the second is a number. Our javascript function needs to take that string and repeat it the number of times provided by the second argument. This is solved in this freeCodeCamp lesson by me using the .repeat method which takes one argument (count) which will repeat the given string the number of times provided.







Tags:
javascript length method
length in javascript
codecademy functions
javascript arrays