Sitemap
Harit Himanshu

Harit Himanshu

Co-Founder https://bonsaiilabs.com/, Co-Creator https://moneybonsai.com. Interested in Personal Finance, FinTech, Programming, Technology, Teaching, Education

Press enter or click to view image in full size

Member-only story

Repeat Strings in JavaScript

1 min readAug 25, 2020

--

Browser JavaScript and Event Loop Course is available at http://bit.ly/39eDgEA

Learn how to repeat Strings in JavaScript. This video contains 2 methods to achieve the task.
It shows how using a while loop you can repeat a string multiple times. It then shows a method that was introduced in ES6 on String constructor called repeat. With this method, you can reduce the code that you write from multiple lines to a single line.

The code sample is available at https://bonsaiilabs.com/javascript-string-repeat/

**********Watch all JavaScript Tutorials**********

http://bit.ly/javascript-youtube

***************************************************

Harit on Twitter: https://twitter.com/harittweets

Subscribe for more videos on JavaScript with Visualization: https://www.youtube.com/channel/UC0yZBnRsD9JRqLXBkfGym0Q?sub_confirmation=1

--

--

Harit Himanshu
Harit Himanshu

Written by Harit Himanshu

Co-Founder https://bonsaiilabs.com/, Co-Creator https://moneybonsai.com. Interested in Personal Finance, FinTech, Programming, Technology, Teaching, Education