We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac3578 commit 74b10fcCopy full SHA for 74b10fc
Object,js Object4.js
Sentence.js
@@ -0,0 +1,7 @@
1
+// Original sentence
2
+let sentence = "The quick brown fox jumps over the lazy dog.";
3
+
4
+// Replace 'fox' with 'cat'
5
+let newSentence = sentence.replace('fox', 'cat');
6
7
+console.log(newSentence); // Output: The quick brown cat jumps over the lazy dog.
0 commit comments