Open in app

Sign In

Write

Sign In

John Au-Yeung
John Au-Yeung

66K Followers

Home

About

Published in JavaScript in Plain English

·3 days ago

How to Access JPEG EXIF Rotation Data in JavaScript on the Client-Side?

Sometimes, we want to access a JPEG’s EXIF rotation data on the client-side with JavaScript. In this article, we’ll look at how to access a JPEG’s EXIF rotation data on the client-side with JavaScript. Access JPEG EXIF Rotation Data in JavaScript on the Client-Side with JavaScript-Load-Image We can use the JavaScript-Load-Image library to load EXIF metadata from an image. To use it…

Programming

2 min read

How to Access JPEG EXIF Rotation Data in JavaScript on the Client-Side?
How to Access JPEG EXIF Rotation Data in JavaScript on the Client-Side?
Programming

2 min read


Published in JavaScript in Plain English

·6 days ago

How to Use setTimeout in JavaScript Promise Chain?

Sometimes, we want to use the setTimeout function in a JavaScript promise chain. In this article, we’ll look at how to use the setTimeout function in a JavaScript promise chain. Create a Function that Returns a Promise that uses setTimeout We can create a function that returns a promise that calls setTimeout so that we can use setTimeout in a…

Programming

2 min read

How to Use setTimeout in JavaScript Promise Chain?
How to Use setTimeout in JavaScript Promise Chain?
Programming

2 min read


Published in JavaScript in Plain English

·Jan 28

How to Check If a Value Exists in an Object Using JavaScript?

Sometimes, we want to check if a value exists in an object with JavaScript. In this article, we’ll look at how to check if a value exists in an object with JavaScript. Use the Object.values Method We can use the Object.values method to return an array of property values of an object. Therefore, we…

Programming

2 min read

How to Check If a Value Exists in an Object Using JavaScript?
How to Check If a Value Exists in an Object Using JavaScript?
Programming

2 min read


Published in JavaScript in Plain English

·Jan 26

How to Check if a JavaScript String is Entirely Made of the Same Substring

Sometimes, we want to check if a JavaScript string is entirely made of the same substring. In this article, we’ll look at how to check if a JavaScript string is entirely made of the same substring. Use the String.prototype.indexOf Method We can use the indexOf method to return the index of the first instance…

Programming

2 min read

How to Check if a JavaScript String is Entirely Made of the Same Substring
How to Check if a JavaScript String is Entirely Made of the Same Substring
Programming

2 min read


Published in JavaScript in Plain English

·Jan 21

How to Find the Size of Local Storage with JavaScript

Sometimes, we want to find the size of our browser’s local storage with JavaScript. In this article, we’ll look at how to find the size of our browser’s local storage with JavaScript. Convert to a Blob We can convert our browser’s local storage object into a blob to get the size of it. To…

Programming

2 min read

How to Find the Size of Local Storage with JavaScript
How to Find the Size of Local Storage with JavaScript
Programming

2 min read


Published in JavaScript in Plain English

·Jan 18

How to Convert a JavaScript Array into a String

Sometimes, we want to convert a JavaScript array into a string. In this article, we’ll look at how to convert a JavaScript array into a string. Concatenate a String to an Array One way to convert a JavaScript array into a string is to concatenate an empty string after it. For instance, we can write: const…

Programming

2 min read

How to Convert a JavaScript Array into a String
How to Convert a JavaScript Array into a String
Programming

2 min read


Published in JavaScript in Plain English

·Jan 14

How to Calculate the Day of the Year with JavaScript?

Sometimes, we want to calculate the day of the year with JavaScript. In this article, we’ll look at how to calculate the day of the year with JavaScript. Calculate the Day of the Year with JavaScript We can calculate the day of the year with JavaScript with some native date methods. For instance, we can write: const now…

Programming

2 min read

How to Calculate the Day of the Year with JavaScript?
How to Calculate the Day of the Year with JavaScript?
Programming

2 min read


Published in JavaScript in Plain English

·Jan 11

How to Map Over a JavaScript Object While Preserving the Keys

Sometimes, we want to map the property values of a JavaScript object to another value while preserving the keys. In this article, we’ll look at how to map the property values of a JavaScript object to another value while preserving the keys. Lodash mapValues Method We can use the Lodash mapValues method to…

Programming

2 min read

How to Map Over a JavaScript Object While Preserving the Keys
How to Map Over a JavaScript Object While Preserving the Keys
Programming

2 min read


Published in JavaScript in Plain English

·Jan 7

How to Join JavaScript Strings with a Delimiter Only if the Strings are not Null or Empty

Sometimes, we want to join JavaScript strings together with a delimiter only if the strings aren’t null or empty. In this article, we’ll look at how to join JavaScript strings together with a delimiter only if the strings aren’t null or empty. Use the Array.prototype.filter Method We can use the JavaScript array filter method…

Programming

2 min read

How to Join JavaScript Strings with a Delimiter Only if the Strings are not Null or Empty
How to Join JavaScript Strings with a Delimiter Only if the Strings are not Null or Empty
Programming

2 min read


Published in JavaScript in Plain English

·Jan 5

How to Define an HTML Template and Append it Using JQuery

Sometimes, we want to define an HTML template and append it to our HTML document with jQuery. In this article, we’ll look at how to define an HTML template and append it to our HTML document with jQuery. Use the jQuery append Method We can use the jQuery append method with a script tag that…

Programming

2 min read

How to Define an HTML Template and Append it Using JQuery
How to Define an HTML Template and Append it Using JQuery
Programming

2 min read

John Au-Yeung

John Au-Yeung

66K Followers

Web developer. Check out https://thewebdev.info. Email me at hohanga@gmail.com

Following
  • Nitai

    Nitai

  • Stefan Smiljkovic

    Stefan Smiljkovic

  • Toni Crowe

    Toni Crowe

  • Anupam Chugh

    Anupam Chugh

  • Magnimind

    Magnimind

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech