Task #154 - Starts with
Implement a function startsWith(start). It should accept a single parameter start and return a function that takes a string s and checks if s starts with start. start is a string that consists of one or more characters...
Implement a function startsWith(start). It should accept a single parameter start and return a function that takes a string s and checks if s starts with start. start is a string that consists of one or more characters...
Implement the function delayedLog(s, n). It should print the string s to the console after n seconds. This task is part of the Full-Stack JavaScript Course If you have any issues with it, you can ask for community help below the post...
Fix the function startProgressBar Expected behavior: The function should display the progress bar on the screen and move it forward each delay ms. The interval should be cleared once the progress bar is full....
Implement the function setEasyTimout(func, time). It should execute the function func after the specific amount of time. time - is an object with hours, minutes, seconds. Examples in solution.js. This task is part of the Full-Stack JavaScript Course...
Implement the function startCountdown(n) using setInterval. It should print to the console all number from n to 1 and then the string GO!. The delay between calls to the console.log should be 0....
Fix the function sum is helper.js. When imported into solution.js it should return the sum of two numbers Don鈥檛 use curly braces and return statement This task is part of the Full-Stack JavaScript Course...
Fix the function getTestData is helper.js. It should return the object {name: 'Jane', age: 22} without using the return keyword. This task is part of the Full-Stack JavaScript Course...
Implement the function isOfAge in helper.js. It should accept the users age and return false, if it鈥檚 less than 21, otherwise - true. You can鈥檛 use if, switch or ternary operator...
The function printArrayElements should use console.log to print out all the array elements to the screen. But it doesn鈥檛 work as expected. For some reason only the indices and not the elements are printed....
The function find return the index of the element in the array or -1 if it鈥檚 not found. The only issue is that it鈥檚 suboptimal. Improve the code and return the index of the element as soon as it鈥檚 found in the array....