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 bd8fccf commit a67241aCopy full SHA for a67241a
Methods Extended Studies/Array Methods Extended Study/startsWith.js
@@ -26,11 +26,12 @@
26
27
const myString = "This is a string";
28
29
-function findFirstLetters(string, input) {
30
- const firstLetters = string.startsWith(input);
+function findFirstLetters(string, input, posStart) {
+ const firstLetters = string.startsWith(input, posStart);
31
console.log(firstLetters);
32
}
33
34
35
findFirstLetters(myString, 'This'); // true
36
-findFirstLetters(myString, 'is'); // false
+findFirstLetters(myString, 'is'); // false
37
+findFirstLetters(myString, 'is', 5); // true
0 commit comments