What is src in HTML

The location of the external file can come in two ways: The first one is the local file that you saved on the computer, and you can access it by writing the file directory as ....

September 13, 2021 路 1 min 路 Coderslang Master

JavaScript Interview Question #51: For Each Key

What happens here and what鈥檚 the output? . . . . . . . . . . . . . . . . . The first line of code defines a user object that has two fields: name and age....

September 11, 2021 路 1 min 路 Coderslang Master

JavaScript Design Patterns - Decorator

Decorator is one of the Structural Design Patterns. You鈥檙e about to start with gift wrapping for a birthday party. A delicate, fragile gift has to be bubble-wrapped. It is followed by placing it safely in a cardboard box....

September 10, 2021 路 5 min 路 Coderslang Master

How Long It Takes to Learn HTML

It will take 2-3 weeks to learn the basics of HTML and 1-2 months of practice to be good at it. Depending on how many hours a day you spend learning, you will learn HTML sooner or later....

September 9, 2021 路 3 min 路 Coderslang Master

How to make an image clickable in HTML

Learn how to make an image clickable in HTML with two easy-to-follow steps. Step 1: Create an image The first step is to add an image that you want to make clickable....

September 8, 2021 路 1 min 路 Coderslang Master

How to Loop Through an Object in JavaScript

There are four ways you can loop through an object in JavaScript, and they are: for鈥n statement Object.entries() Object.keys() Object.values() Let鈥檚 take a look at each of these methods and how they work:...

September 7, 2021 路 3 min 路 Coderslang Master

How to Run JavaScript in Terminal

You can run JavaScript in the terminal with the help of a tool called NodeJs. NodeJs is a free and open-sourced run-time environment that lets you write JavaScript command-line tools and server-side scripts outside of a browser....

September 6, 2021 路 2 min 路 Coderslang Master

What is the correct HTML for making a Drop-Down List

The select element is the correct HTML for making a drop-down List. For a quick refresher, It is an HTML element tag that creates a drop-down list and is used to get user submissions on an input form....

August 31, 2021 路 2 min 路 Coderslang Master

How to Comment Out in JavaScript

There are two ways you can comment out the code in JavaScript, and they are: Single line comment Multiple line comment Let鈥檚 take a look at what each of these does:...

August 30, 2021 路 3 min 路 Coderslang Master

Inside Which HTML Element Do We Put The JavaScript

The script tag is used when we want to put a JavaScript code in an HTML file. The script is the HTML element tag used to insert a JavaScript code in an HTML file....

August 27, 2021 路 2 min 路 Coderslang Master