@jp2kk2/

fib number-1

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
function myReplace(str, before, after) {
  
  str = str.split(" ");
  
  console.log(str.replace("jumped", "leaped"));
  
  return str.join(' ');
}

myReplace("A quick brown fox jumped over the lazy dog", "jumped", "leaped");
Native Browser JavaScript