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

Submitted

Calculator

RedMwp 790

@RedMwp

Desktop design screenshot for the Calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


Problem in emplementing deletion, any help will be appreciated

Community feedback

@mtjeth

Posted

By taking input value as string then slice the last entered data with .slice(0,-1) then replace the value. for more see my implementation in my page.

function del(){
    var a = document.getElementById('display').value.toString();
    a = a.slice(0,-1); 
    document.getElementById('display').value = value;
}

display is the input element id.

Marked as helpful

1

RedMwp 790

@RedMwp

Posted

@mtjeth thank you very much for your solution, i really appreciate it

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord