vault.html
<title>Secure the Vault</title> <script src="vault.js"></script> alt="Image of Fallout Vault">vault.js console.log( "You have received this message because you have been chosen to open an important vault. Here is the secret combination. GLHF " );
// Step 1. Solve the first Number in the Combination // Step 2. Solve the second Number in the Combination // Step 3. Solve the third Number in the Combination
console.log("What's the first answer"); const three = 3; const seven = 7; const firstAnswer = 10; var num1 = 3 + 7;
console.log("three + seven"); console.log(three + seven); console.log(firstAnswer); console.log(num1);
// Nice job! Two more to go! :)
console.log("What's the second answer"); const twentyseven = 27; const thirteen = 13; const secondAnswer = 40; var num2 = 27 + 13;
console.log("twentyseven + thirteen"); console.log(twentyseven + thirteen); console.log(secondAnswer); console.log(num2);
// Almost there! You're a master vault cracker!
console.log("What's the third answer"); const forty = 40; const one = 1; const thirdAnswer = 39; var num3 = 40 - 1;
console.log("forty - one"); console.log(forty - one); console.log(thirdAnswer); console.log(num3);
// Congratulations! You have successfully cracked the code!
console.log("What is the combination?"); const combination = "10 - 40 - 39";
console.log(combination);
let str1 = 10 let str2 = 40 let str3 = 39 alert("10 - 40 - 39");