confirmEnding.js
@@ -1,16 +1,461 @@
-c
+// C
 onfirm
+ the 
 Ending
-.js
+%0A%0A// Check if a string (first argument, str) ends with the given target string (second argument, target).%0A%0A// This challenge can be solved with the .endsWith() method, which was introduced in ES2015. %0A// But for the purpose of this challenge, we would like you to use one of the JavaScript substring methods instead.%0A%0A// Sample Input%0A%0A// %22Bastian%22, %22n%22%0A// %22Connor%22, %22n%22%0A// %22Open sesame%22, %22same%22%0A%0A// Sample Output%0A%0A// true%0A// false%0A// true%0A%0A

add desc ++ params