---
title: "Luke Chidubem (@lukechidubem) | Hashnode"
description: "I am a proactive Full-Stack Software Engineer, works with JavaScript, NodeJs, TypeScript. Read the latest articles by Luke Chidubem on Hashnode."
url: "https://hashnode.com/@lukechidubem"
---

@lukechidubem

# Luke Chidubem

@lukechidubem · Joined February 2023

I am a proactive Full-Stack Software Engineer, works with JavaScript, NodeJs, TypeScript

### [How to add event listeners to HTML elements using JavaScript](https://lukechidubem.hashnode.dev/how-to-add-event-listeners-to-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript, event listeners can be added to HTML elements to execute a block of code when the specified event occurs. Here's an example of how to add a click event listener to a button element: In the above example, we first select the button ele...

2 min read · [lukechidubem.hashnode.dev](https://lukechidubem.hashnode.dev/how-to-add-event-listeners-to-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

[Apr 28, 2023](https://hashnode.com/posts/how-to-add-event-listeners-to-html-elements-using-javascript/644b83c13d486be97b43a044)

### [How to add and remove HTML elements using JavaScript](https://lukechidubem.hashnode.dev/how-to-add-and-remove-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript, you can dynamically add or remove HTML elements from the DOM (Document Object Model) using various methods. Here are some examples: 1) Adding elements: a) createElement() and appendChild(): To add a new element to the DOM, you can crea...

2 min read · [lukechidubem.hashnode.dev](https://lukechidubem.hashnode.dev/how-to-add-and-remove-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

[Apr 27, 2023](https://hashnode.com/posts/how-to-add-and-remove-html-elements-using-javascript/644a28c35bb6f8c898ef615b)

### [How to modify HTML elements using JavaScript](https://lukechidubem.hashnode.dev/how-to-modify-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

To modify HTML elements using JavaScript, you need to first select the element using one of the methods discussed in the previous answer, then use various methods to modify its attributes, content, or style. Here are some examples: 1) Modifying the t...

1 min read · [lukechidubem.hashnode.dev](https://lukechidubem.hashnode.dev/how-to-modify-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

[Apr 25, 2023](https://hashnode.com/posts/how-to-modify-html-elements-using-javascript/644796bcbc78e16a5dc9bfc4)

### [How to select HTML elements using JavaScript](https://lukechidubem.hashnode.dev/how-to-select-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

Selecting HTML elements using JavaScript is an essential part of DOM manipulation. There are several ways to select HTML elements using JavaScript, such as: 1) getElementById(): This method allows us to select an element by its unique id attribute. H...

1 min read · [lukechidubem.hashnode.dev](https://lukechidubem.hashnode.dev/how-to-select-html-elements-using-javascript?utm_source=hashnode&utm_medium=feed)

[Apr 24, 2023](https://hashnode.com/posts/how-to-select-html-elements-using-javascript/644641fa582e5f090ee49150)

### [JavaScript indexOf and lastIndexOf methods and how to use them.](https://lukechidubem.hashnode.dev/javascript-indexof-and-lastindexof-methods-and-how-to-use-them?utm_source=hashnode&utm_medium=feed)

indexOf() and lastIndexOf() are string methods in JavaScript that are used to search for a substring within a given string. The indexOf() method returns the index of the first occurrence of the specified substring, while the lastIndexOf() method retu...

1 min read · [lukechidubem.hashnode.dev](https://lukechidubem.hashnode.dev/javascript-indexof-and-lastindexof-methods-and-how-to-use-them?utm_source=hashnode&utm_medium=feed)

[Apr 12, 2023](https://hashnode.com/posts/javascript-indexof-and-lastindexof-methods-and-how-to-use-them/64365be6f7d8baabcca97b71)
