Skip to content

Commit

Permalink
string replace method
Browse files Browse the repository at this point in the history
ls
  • Loading branch information
anandujjwal13 committed Jan 19, 2017
1 parent 3c5ecb6 commit dc12fff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions revising string.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var example = 'this example exists';
example = example.replace('exists', 'is awesome');
console.log(example);
3 changes: 3 additions & 0 deletions revising-string.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var example = 'pasta is wonderful';
example = example.replace('pasta', 'pizza');
console.log(example);

0 comments on commit dc12fff

Please sign in to comment.