We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ddab6 commit 7f3875aCopy full SHA for 7f3875a
7kyus/js/stringEndsWith.js
@@ -0,0 +1,13 @@
1
+//2 arguments - both strings check?
2
+// returns boolean
3
+function solution(str, ending) {
4
+ //todo
5
+ return str.endsWith(ending);
6
7
8
+}
9
+
10
+console.log(solution("abc", "bc")); // returns true
11
+console.log(solution("abc", "d")); // returns false
12
+console.log(solution("abcde", "cde")); //true
13
+console.log(solution("samurai", "ra")); //false
0 commit comments