回答編集履歴

1

書き間違い

2022/12/10 23:10

投稿

shishin
shishin

スコア73

test CHANGED
@@ -1,2 +1,2 @@
1
1
  const p = 'The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?';
2
- console.log(p.replace('dog/g', 'monkey'));
2
+ console.log(p.replace(/dog/g, 'monkey'));