代码差异对比

在线代码差异对比工具,逐行高亮显示变更,支持新增和删除标记

原始文本
修改后文本
3 新增3 删除4 未变
差异对比
±内容
1-function hello(name) {
2- console.log("Hello, " + name);
1+function hello(name, greeting) {
2+ console.log(`${greeting}, ${name}!`);
33 return true;
44 }
55
66 const x = 42;
7-const y = 100;
7+const z = 200;

常见问题

相关工具