Skip to content
Scratch Coding
  • WordPress
  • Laravel
  • PHP
  • Vue.js
  • JavaScript
  • Quick Links
    • Contact Us
    • Privacy Policy
    • About Us

JavaScript

How to Create and Dispatch Events in JavaScript?

May 29, 2024April 25, 2024 by Hadaya Qaiser
events in JavaScript

The tutorial gives the simple steps to create your own custom events, dispatch them, and use in your web application with event listeners.

Categories JavaScript

Why changing device orientation won’t swap width and height?

May 29, 2024March 14, 2024 by Hadaya Qaiser
device orientation

The best methods to use to get a browser’s or screen’s width and height while changing device orientation…

Categories JavaScript Leave a comment

What is the different between Yarn vs Npm in JavaScript?

May 29, 2024January 29, 2024 by Sumaira Nasir
YARN vs NPM

Both YARN and NPM are package manager tools. They are used for installing dependencies /packages. Read to know the difference between them.

Categories JavaScript

How to make API calls in JavaScript?

May 29, 2024July 23, 2023 by Hadaya Qaiser

The two main methods to make API calls in JavaScript with examples, and the recommended ones to use for different cases.

Categories JavaScript

How to use different Math functions in JavaScript?

May 29, 2024July 23, 2023 by Hadaya Qaiser

The tutorial gives a list along with examples of the different Math functions for computations in JavaScript.

Categories JavaScript

Why I am always getting an HTML element’s height as 0?

May 29, 2024June 26, 2023 by Hadaya Qaiser

A solution to a basic CSS and JavaScript issue that tells us how vital is the order of getting and assigning CSS properties

Categories JavaScript

How to handle nulls and whitespaces in a single line – JavaScript

May 29, 2024March 20, 2023 by Hadaya Qaiser
handle nulls and whitespaces

The simple method to handle nulls and whitespaces for strings in JavaScript. Learn how to validate both conditions in a single line!

Categories JavaScript

How to handle nulls and whitespaces using String functions – JavaScript

May 29, 2024March 20, 2023 by Hadaya Qaiser

Some conditions are only applied to variables if they hold a proper value. Suppose you are filling out a form and leaving blank spaces. The system will throw a validation error or handle the empty or blank space string. There are many different ways to handle such situations in JavaScript. Let’s focus on the most … Read more

Categories JavaScript

How to get the current time zone in best way – JavaScript

May 29, 2024January 9, 2023 by Hadaya Qaiser
current time zone

The simple method you can use without any additional parameters to get the current time zone of your location…

Categories JavaScript

How to manipulate data from Date function to different formats in best ways

May 29, 2024January 9, 2023 by Hadaya Qaiser
manipulate data from Date function

Simple, easy and best ways to manipulate the data from a Date function in different ways and various formats…

Categories JavaScript
Older posts
Page1 Page2 Page3 Next →

Recent Posts

  • How to manage multiple versions of Node.js on your computer?
  • How to get Domain Name From Subdomain in PHP
  • How to use srcset and sizes for Image Optimization?
  • How to Replace http with https in PhpMyAdmin (bulk WordPress URL update)
  • How to use the array map function with a condition in React?
  • CSS
  • Ionic Framework
  • JavaScript
  • JavaScript Framworks
  • Laravel
  • MySql
  • Node.js
  • PHP
  • React
  • Vue.js
  • Wordpress
© 2025 Scratch Coding • All Rights Reserved.