diff --git a/revising string.js b/revising string.js new file mode 100644 index 0000000..3536baf --- /dev/null +++ b/revising string.js @@ -0,0 +1,3 @@ +var example = 'this example exists'; + example = example.replace('exists', 'is awesome'); + console.log(example); \ No newline at end of file diff --git a/revising-string.js b/revising-string.js new file mode 100644 index 0000000..15c0506 --- /dev/null +++ b/revising-string.js @@ -0,0 +1,3 @@ +var example = 'pasta is wonderful'; + example = example.replace('pasta', 'pizza'); + console.log(example); \ No newline at end of file