DEV Community

Goodluck Reuben
Goodluck Reuben

Posted on

The hello world of programming

Recently, I started learning web development, building a solid foundation in HTML and CSS. As I ventured into JavaScript, I recalled someone describing the most basic projects a programmer can build: a calculator and a to-do list app—where the calculator represents "Hello" and the to-do list app represents "World."

Inspired by this, I created my own calculator, which you can check out here. While it’s not perfect, it signifies my first significant step into JavaScript, and I’m proud of what I’ve learned through this project. I’m also currently working on the to-do list app, aiming to enhance my skills even further.

I encourage fellow beginners like me to connect, as well as seasoned professionals who might have insights to share. Your feedback on my projects, whether about design, functionality, or code, would be incredibly valuable as I continue to develop my skills.

Top comments (2)

Collapse
 
elanatframework profile image
elanatframework

Good design

It is better to list similar cases in the switch one after the other and then perform the operation

Example:

       switch(innerHtml){
        case '1':
        case '2':
        case '3':
        case '4':
        case '5':
        case '6':
        case '7':
        case '8':
        case '9':
        case '0':
        case '.':
        case'(':
        case')':
        pee_tag.innerHTML = num=num+innerHtml;
            disappear();
            appear();
        break;
        default: console.log(innerHtml);
       }
Enter fullscreen mode Exit fullscreen mode
Collapse
 
oluwa_billionz_ profile image
Goodluck Reuben

thanks boss