You are training your dog to bark on command. Write a function that receives the number of times your dog should bark and returns a string containing that number of barks.
String transforming
Barking
Report a typo
Sample Input 1:
3Sample Output 1:
bark bark barkWrite a program in JavaScript
function speak(n) {
//write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.