Assessment wanted for Strings 1 skill test. (Tasks 1-4)

Assessment wanted for Strings 1 skill test. (Tasks 1-4)

Link to task: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Test_your_skills:_Strings#strings_1

Links to my code:
Task-1: https://jsfiddle.net/EiNzp/x7tksaf8/1/
Task-2: https://jsfiddle.net/EiNzp/0ky6n1rm/
Task-3: https://jsfiddle.net/EiNzp/busey4z3/1/
Task-4: https://jsfiddle.net/EiNzp/x6rdze1h/2/

Thanks :wink:

Nice, nice, @EiN.

In task 2 the idea is to calculate the second value of slice() to cut out the appropriate part of the quote. (Not to add the substring to it.) You’ll need the length of the substring for this.

The rest is fine. :slightly_smiling_face:

Michael

1 Like

Thanks for checking my code. For some reason I misunderstood the second task. Thanks for pointing me in the right direction :slightly_smiling_face:

My corrected code: https://jsfiddle.net/EiNzp/0ky6n1rm/8/

1 Like

Yup, that’s exactly what was asked. :+1:

1 Like