Created
December 5, 2015 18:13
-
-
Save anonymous/658d03b453b2becb267f to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/bskydive 's solution for Bonfire: Confirm the Ending
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Bonfire: Confirm the Ending | |
| // Author: @bskydive | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-confirm-the-ending# | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| function end(str, target) { | |
| return str.substr(-target.length,target.length)==target; | |
| } | |
| end("Bastian", "n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment