repeat method | String Object In JavaScript

preview_player
Показать описание
🎁 Join my channel to get access to perks:

🧡 Hello All JavaScript Lovers Outhere!

Today you're going to learn about the String Object In JavaScript.

This tutorial is a series of videos, in each video we will discuss a method (or more) of the String Object in JavaScript.

In today's video, you're going to learn about the repeat method.

The repeat() method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.

🔷 Syntax :
repeat(count)

🔹count : An integer between 0 and +Infinity, indicating the number of times to repeat the string.

🔷 Example :
const greeting = 'Hello World! ';
// expected output: "Hello World! Hello World! Hello World! Hello World! Hello World! "

🌍 Social Media Links.

💲 Suppport the Channel
Рекомендации по теме
Комментарии
Автор

Wow !! Great explanation bro ... thank you

seddeknadhem
Автор

RangeError would be cool name for a band.

stephen
join shbcf.ru