Shubham Vora has Published 957 Articles

How to create half of the string in uppercase and the other half in lowercase?

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:47:47

2K+ Views

To convert strings into lowercase and uppercase, we can use the JavaScript string class’s built-in methods like toLowerCase() and toUpperCase(). Furthermore, we can use the string length property or substring() method to split the string in half part. We will learn two approaches in this tutorial to convert half string ... Read More

How to clear the canvas using clearRect in HTML?

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:45:57

583 Views

We will cover the process of creating a canvas element in the HTML document, selecting it in JavaScript code, and using the clearRect method to clear the entire canvas or a specific area of it. This is a useful technique for creating dynamic and interactive graphics in HTML, and we ... Read More

Highlighting Dropdown Options in ReactJS

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:43:53

912 Views

Highlighting dropdown options is important because it improves the menu's usability by making it easier for users to identify the options they are hovering over. When a user hovers over an option, it becomes highlighted, making it stand out from the other options. This helps the user quickly identify the ... Read More

Getting started with React Native? Read this first!

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:38:15

521 Views

React Native is a framework that allows developers to build mobile applications using JavaScript and React. It allows developers to use the same codebase for both iOS and Android platforms, making it a cost-effective and efficient solution for mobile development. React Facebook first introduced native in 2015 as an open-source ... Read More

Get requests using AJAX by making a Custom HTTP library

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:35:28

251 Views

We will learn to make a get request using the AJAX by making the custom HTTP library. Let’s learn about the Get request and AJAX before we start with the tutorial. The Get request is used to get or fetch data from the API (Application programming interface). The AJAX stands ... Read More

How to use Checkbox inside Select Option using JavaScript?

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:33:06

8K+ Views

Sometimes, we require to use the checkbox inside the select option. We can allow users to select multiple options by introducing the checkboxes with the select option. However, if we use the multiple attributes with the tag, it allows us to select them by pressing the ‘ctrl + left ... Read More

How to use await outside of an async function in JavaScript?

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:31:59

2K+ Views

In JavaScript, the async-await keyword is used to make the function asynchronous. If we make any function asynchronous, it works like multithreading and executes the code parallelly, which helps us to improve the application performance. Here, we will learn to use the await keyword outside the asynchronous function. Invoke the ... Read More

How to use array that include and check an object against a property of an object?

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:27:55

4K+ Views

The task is to check whether the array contains a particular value. Also, we need to check if the array contains the particular object with the given property. This tutorial will use the array.includes(), and array.some() method to check whether the array contains the value or object with a particular ... Read More

How to swap two variables in JavaScript?

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:26:54

2K+ Views

We will learn to swap two variable values in JavaScript using various approaches. Let’s understand via example what swapping means. For example, we have two variables called variable1 and variable2. When we assign the values of variable2 to variable1 and the value of variable1 to variable2, we can say that ... Read More

How to sort option elements alphabetically using jQuery?

Shubham Vora

Shubham Vora

Updated on 16-Feb-2023 15:24:17

7K+ Views

Sometimes, we require sorting the options of the dropdown menu in alphabetical order. For example, you are selling computers on your website, and you want to allow users to select a computer based on the model. If your website contains hundreds of models of different brands, it will be hard ... Read More

Advertisements