odin-js-fundamentals-part-2/03-lets-do-some-math/index.js

37 lines
773 B
JavaScript
Raw Normal View History

2023-12-30 14:11:09 +00:00
const { a, b, c, d, e } = require("./math");
if (a === 9) {
console.log("'a' is correct!")
} else {
console.log(`'a' is incorrect, got ${a}, expected 9`)
}
console.log("\n");
if (b === 66) {
console.log("'b' is correct!")
} else {
console.log(`'b' is incorrect, got ${b}, expected 66`)
}
console.log("\n");
if (c === 1) {
console.log("'c' is correct!")
} else {
console.log(`'c' is incorrect, got ${c}, expected 1`)
}
console.log("\n");
if (d === -8) {
console.log("'d' is correct!")
} else {
console.log(`'d' is incorrect, got ${d}, expected -8`)
}
console.log("\n");
if (e === 68) {
console.log("'e' is correct!")
console.log("\n Congrats! You may move onto the next exercise")
} else {
console.log(`'e' is incorrect, got ${e}, expected 68`)
}