Find the character’s index position: charAt()

Make Text Appear / Change Text: innerHTML / example

Make Element Appear: style.display & style.visibility

Make Element Disappear: style.display & style.visibility

Copy Content: innerHTML

Delete Content: innerHTML

Add an Element: appendChild() + insertBefore

Remove an Element: removeChild() or removeChild()

Toggle Show/Hide Element: if-else

Change CSS Style: style.prop / style properties

Remove Whitespace from a String: replace()

Remove Numbers from a String: replace()

Remove First / Last Character from a String: substr()

Remove Last Character from a String: substring()

Remove All Same Tag Elements: removeChild()

Count Letter E in a String: charAt()

Replace a Word: replace()

Iteration: For Loop / While Loop / For&While / For/If / For/If-else / For/If-Nested If

Function: Parameter/If condition

Loop Over querySelectorAll Matches: forEach()

Set Attribute: document.getElementById(“ID”).setAttribute(“class”, “value”);

Change Attribute: example

Table: Delete rows / Add rows / Change the content



About bernadetteengleman

Hello, I am Bernadette from New York City. I moved here from Chicago in 2013. I am originally from the Philippines. I started studying web programming in 2015. I love it because I like making fun websites and web apps. The projects that I built so far are posted below. I like to cook and I love to travel. I also like to volunteer and I am a team leader with the non-profit organization, NYCares.
This entry was posted in JavaScript and tagged , , , , , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.