Release 0.3:Remove Duplicated Code for Removing Section

In this code modification, I tried to make the code look simpler, so I optimized several of them, so I created a class that makes it easy to maintain updates later, which is easier to do. Arrived:

Html: DOM(document.getElementById)

Javascript:array(array.foreach method)

Javascript: code refactoring – elimate repeat code to make code easier to maintain

Css: element style: display attribute


Html: DOM(document.getElementById)

The Document method getElementById() returns an Element object representing the element whose id property matches the specified string. Since element IDs are required to be unique if specified, they’re a useful way to get access to a specific element quickly.

If you need to get access to an element which doesn’t have an ID, you can use querySelector() to find the element using any selector.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s