Skip to content

Commit 74b10fc

Browse files
author
rejwar
committed
Fix critical bug introduced last week
1 parent 3ac3578 commit 74b10fc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Object,js Object4.js

File renamed without changes.

Sentence.js

+7
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)