JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
JS Fundamentals: Objects, Arrays, and Functions
Introduction
Content
Bonus: Merge Sort
More
Share
Explore
Introduction
Example Exercise
Tweet me that you did the exercise!
Get familiar with the setup for an exercise. I will be using
repl.it
repos that are backed up by GitHub.
Prompt
Implement a method similar to
endsWith()
The
endsWith()
method determines whether a string ends with the characters of a specified string, returning
true
or
false
as appropriate.
Source:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
Code here
Loading…
Solution
The solution is in the solution branch, which can be checked out in the
Repl.it
by selecting the version control tab on the right and then selecting the solution branch from the drop down menu.
If you are having trouble with
repl.it,
the solutions are also available in each exercise doc at the bottom.
endsWith Solution
Next 👉
Task List + Outline
©2021
Code and Coffee
for
Frontend Masters
Prompt
Code here
Solution
endsWith Solution
Next 👉 Task List + Outline
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.