diff.
paste two blobs — see every changed line highlighted. lcs-based, line-level. split view aligns matching lines side by side; unified view collapses into a patch-style hunk list.
| 1 | const add = (a, b) => a + b; | 1 | const add = (a, b) => a + b; |
| 2 | const sub = (a, b) => a - b; | 2 | const sub = (a, b) => a - b; |
| 3 | const mul = (a, b) => a * b; | 3 | const mul = (a, b) => a * b; |
| 4 | +const div = (a, b) => a / b; | ||
| 4 | 5 | ||
| 5 | function main() { | 6 | function main() { |
| 6 | console.log(add(2, 3)); | 7 | console.log(add(2, 3)); |
| 7 | console.log(sub(10, 5)); | 8 | console.log(sub(10, 5)); |
| 9 | + console.log(mul(4, 6)); | ||
| 10 | + console.log(div(20, 4)); | ||
| 8 | } | 11 | } |