odin-js-fundamentals-part-2/01-troubleshooting/troubleshooting.js

25 lines
484 B
JavaScript
Raw Permalink Normal View History

2023-12-30 14:11:09 +00:00
/**
* ===== Troubleshooting =====
* The function below should log the number 2, however it does not,
* see if you can fix it!
* Be sure to fix it in the spirit of the code, do not hard code the result.
*/
function troubleshooting() {
const a = 1;
const b = 1;
let result;
// Edit between these lines
// =================================
2023-12-30 14:12:07 +00:00
result = a + b;
2023-12-30 14:11:09 +00:00
// =================================
return result;
}
// Do not change this
module.exports = troubleshooting;