Diff Checker
Compare two texts and find the differences.
4 additions
2 deletions
2 unchanged
Differences
| 1 | - | function greet(name) { | |
| 2 | - | console.log("Hello, " + name); | |
| 1 | + | function greet(name, greeting) { | |
| 2 | + | console.log(greeting + ", " + name); | |
| 3 | 3 | return true; | |
| 4 | 4 | } | |
| 5 | + | ||
| 6 | + | // Added comment |
How to Read the Diff
+
Added
New lines in modified text
-
Removed
Lines deleted from original
Unchanged
Lines that are the same