Skip to content

Commit 9edf1ff

Browse files
committed
more substring practice
1 parent 69717b1 commit 9edf1ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-2/Prep/functions.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ let hobby = "I love football and traveling"
2626
let moreHobby = hobby.replaceAll("football", "swiming").replaceAll("traveling", "hiking")
2727
console.log(moreHobby)
2828

29-
const passion = hobby.substring(0, 15)
29+
const passion = hobby.substring(6, 15)
3030
console.log(passion)

0 commit comments

Comments
 (0)