🎁 Join my channel to get access to perks:
In today’s video, you’re going to learn about the concat 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.
🟢🟠 The string.repeat() method
🔷 Syntax :
🔹count : An integer between 0 and +Infinity, indicating the number of times to repeat the string.
🔷 Example :
const greeting = ‘Hello World! ‘;
console.log( greeting.repeat(5) );
// expected output: “Hello World! Hello World! Hello World! Hello World! Hello World! “
🌍 Social Media Links.
◾ Facebook : https://www.facebook.com/Code.Explained.Official
◾ Twitter : https://twitter.com/code_explained
◾ Instagram : https://www.instagram.com/Code.Explained.Official/
◾ GitHub : https://github.com/CodeExplainedRepo
💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExplained