Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • Victor J• 90

    @juarezv90

    Submitted

    Challenges

    Most challenges faced were with the handling of calculations for the calculator. Making separate functions and using a loop to assign specific function to most of the keys created a fast coding stance.

    • Clicking number function

    const numberClick = (element) => { if (needReset) { reset(); } if (screen.innerHTML == 0) { screen.innerHTML = ""; } if ((!isNaN(parseInt(element)) || element == ".") && computation == null) { screen.innerHTML = screen.innerHTML + element; inputOne = screen.innerHTML; } else { screen.innerHTML = screen.innerHTML + element; inputTwo = screen.innerHTML; } };

    • For Loop to assign keys function

    for (const key of keys) { if (!isNaN(parseInt(key.innerHTML)) || key.innerHTML == ".") { key.addEventListener("click", () => numberClick(key.innerHTML)); } }

    P
    Phan Tien Tai• 50

    @tientaidev

    Posted

    • When I press 73+, the screen appears 0, it is confusing
    • When I press 78+-1, the screen appears 0, it does not seem correct.
    • I can type 7.89.145.5632, which does not seem to be a correct number.
    • I can type 1/.
    • I can type 1+.

    I would appreciate if you review my site as well ^^

    0
  • HualDev• 850

    @HualDev

    Submitted

    I'd really ancious to read your comments that help me to improve my skills.

    P
    Phan Tien Tai• 50

    @tientaidev

    Posted

    It does not seem to work for me When i type 7 /, screen appears 0

    0
  • P
    Phan Tien Tai• 50

    @tientaidev

    Posted

    • (Optional) You should handle long equation: e.g 1+1+1+1+1+1+1+1+1+1+1
    • You should handle del operation more carefully. e.g 10+1 then you remove 1, screen appears syntax error
    • I can type 1++++++++

    I would appreciate if you can review mine back ^^

    Marked as helpful

    1