Ready Monetized Wordpress Website

EARN MONEY FREELANCING

Thursday, June 13, 2019

Help with simple JavaScript problem

I am doing some homework and my code doesn't pass the tests. What is wrong with my code? Thanks for the help!

Instructions:

Write a function called removeFromString, which accepts a string, a starting index (number) and a number of characters to remove.

The function should return a new string with the characters removed.

Examples:

removeFromString('Rithm School', 2, 4) // 'RiSchool'

removeFromString('Rithm School', 6, 400) // 'Rithm '

Here is my code:

https://codepen.io/DragonG/pen/zVvjgG

submitted by /u/LovelyLionLily
[link] [comments]

from web_design http://bit.ly/2F5yFaT
via IFTTT

No comments:
Write Your Comments

Ready Monetized Blogger Gaming Website