Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
Untitled diff
Criado
há 11 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
21 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
50 linhas
Copiar tudo
46 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
48 linhas
Copiar tudo
// Define variables
// Define variables
var output = document.getElementById("message");
var output = document.getElementById("message");
Copiar
Copiado
Copiar
Copiado
var movies = document.getElementById("movies");
var object = document.getElementById("object");
var BR = "<br>";
var BR = "<br>";
Copiar
Copiado
Copiar
Copiado
var makeBreakfast;
var mood;
var energyLevel;
var doWork;
var powerOn;
var command;
var duration;
var quitWork;
// Define robot object
// Define robot object
var robot = {
var robot = {
Copiar
Copiado
Copiar
Copiado
material: "titanium",
material: "titanium",
mood: "happy",
mood: "happy",
energyLevel: 100,
energyLevel: 100,
powerOn: false,
powerOn: false,
command: "Sweeping the floor",
command: "Sweeping the floor",
duration: 10,
duration: 10,
favoriteMovies: ["2001: A Space Odyssey", "The Terminator", "I, Robot",
"WALL-E", "Short Circuit", "Forbidden Planet"]
favoriteMovies: ["2001: A Space Odyssey", "The Terminator", "I, Robot",
"WALL-E", "Short Circuit", "Forbidden Planet"]
,
};
makeBreakfast:
function (newMood) {
this.
mood = newMood;
makeBreakfast =
function (newMood) {
if (
this.
mood === "Happy") {
mood = newMood;
output.innerHTML += "Here are your waffles and milk, master." + BR;
if (
mood === "Happy") {
} else {
output.innerHTML += "Here are your waffles and milk, master." + BR;
output.innerHTML += "Here is your burnt toast and lukewarm water, master." + BR;
} else {
this.
energyLevel = 50;
output.innerHTML += "Here is your burnt toast and lukewarm water, master." + BR;
}
energyLevel = 50;
},
}
doWork:
function () {
};
if (!
this.
powerOn) {
doWork =
function () {
this.
powerOn = true;
if (!
powerOn) {
output.innerHtml += "My current task is: " +
this.
command + ". Duration: " +
this.
duration + " minutes." + BR;
powerOn = true;
}
output.innerHtml += "My current task is: " +
command + ". Duration: " +
duration + " minutes." + BR;
},
}
quitWork:
function () {
};
if (
this.
powerOn) {
quitWork =
function () {
this.
energyLevel = 90;
if (
powerOn) {
this.
powerOn = false;
energyLevel = 90;
this.
command = "Taking a nap";
powerOn = false;
}
command = "Taking a nap";
}
}
};
};
// Make robot do housework
// Make robot do housework
Copiar
Copiado
Copiar
Copiado
doWork();
robot.
doWork();
quitWork();
robot.makeBreakfast('happy');
robot.
quitWork();
for(var i = 0, l = robot.favoriteMovies.length; i < l; i++) {
movies.innerHTML += robot.favoriteMovies[i] + BR;
}
object.innerHTML = JSON.stringify(robot);
Diferenças salvas
Texto original
Abrir arquivo
// Define variables var output = document.getElementById("message"); var BR = "<br>"; var makeBreakfast; var mood; var energyLevel; var doWork; var powerOn; var command; var duration; var quitWork; // Define robot object var robot = { material: "titanium", mood: "happy", energyLevel: 100, powerOn: false, command: "Sweeping the floor", duration: 10, favoriteMovies: ["2001: A Space Odyssey", "The Terminator", "I, Robot", "WALL-E", "Short Circuit", "Forbidden Planet"] }; makeBreakfast = function (newMood) { mood = newMood; if (mood === "Happy") { output.innerHTML += "Here are your waffles and milk, master." + BR; } else { output.innerHTML += "Here is your burnt toast and lukewarm water, master." + BR; energyLevel = 50; } }; doWork = function () { if (!powerOn) { powerOn = true; output.innerHtml += "My current task is: " + command + ". Duration: " + duration + " minutes." + BR; } }; quitWork = function () { if (powerOn) { energyLevel = 90; powerOn = false; command = "Taking a nap"; } }; // Make robot do housework doWork(); quitWork();
Texto alterado
Abrir arquivo
// Define variables var output = document.getElementById("message"); var movies = document.getElementById("movies"); var object = document.getElementById("object"); var BR = "<br>"; // Define robot object var robot = { material: "titanium", mood: "happy", energyLevel: 100, powerOn: false, command: "Sweeping the floor", duration: 10, favoriteMovies: ["2001: A Space Odyssey", "The Terminator", "I, Robot", "WALL-E", "Short Circuit", "Forbidden Planet"], makeBreakfast: function (newMood) { this.mood = newMood; if (this.mood === "Happy") { output.innerHTML += "Here are your waffles and milk, master." + BR; } else { output.innerHTML += "Here is your burnt toast and lukewarm water, master." + BR; this.energyLevel = 50; } }, doWork: function () { if (!this.powerOn) { this.powerOn = true; output.innerHtml += "My current task is: " + this.command + ". Duration: " + this.duration + " minutes." + BR; } }, quitWork: function () { if (this.powerOn) { this.energyLevel = 90; this.powerOn = false; this.command = "Taking a nap"; } } }; // Make robot do housework robot.doWork(); robot.makeBreakfast('happy'); robot.quitWork(); for(var i = 0, l = robot.favoriteMovies.length; i < l; i++) { movies.innerHTML += robot.favoriteMovies[i] + BR; } object.innerHTML = JSON.stringify(robot);
Encontrar Diferença