It's great to see that you're using let and const for all of your variable declarations in calculator.js! 💥
One tiny suggestion is to use const to declare the display variable on line 2:
let display = document.getElementById('display');
becomes:
const display = document.getElementById('display');
Because you're never mutating the value of this variable, it remains constant. Using const makes it immediately clear to anyone reading your code that this is an immutable variable.
It's great to see that you're using
letandconstfor all of your variable declarations in calculator.js! 💥One tiny suggestion is to use
constto declare the display variable on line 2:let display = document.getElementById('display');becomes:
const display = document.getElementById('display');Because you're never mutating the value of this variable, it remains constant. Using
constmakes it immediately clear to anyone reading your code that this is an immutable variable.