Open in app

Sign In

Write

Sign In

John Au-Yeung
John Au-Yeung

72K Followers

Home

About

Published in JavaScript in Plain English

·3 days ago

How to Add a Property to Each Object in an Array of Objects with JavaScript

Sometimes, we want to add a property to each object in an array of JavaScript objects. In this article, we’ll look at how to add a property to each object in an array of JavaScript objects. Add a Property to Each Object in an Array of Objects with JavaScript with forEach We can use the forEach method to loop through each element in an object…

Programming

2 min read

How to Add a Property to Each Object in an Array of Objects with JavaScript
How to Add a Property to Each Object in an Array of Objects with JavaScript
Programming

2 min read


Published in JavaScript in Plain English

·5 days ago

How to Get the Min and Max Dates in a JavaScript Date Array?

Sometimes, we want to get the min and max dates in a JavaScript date array. In this article, we’ll look at how to the min and max dates in a JavaScript date array. Get the Min and Max Dates in a JavaScript Date Array We can use the Math.max and Math.min methods to get the max and min dates respectively. For…

Programming

2 min read

How to Get the Min and Max Dates in a JavaScript Date Array?
How to Get the Min and Max Dates in a JavaScript Date Array?
Programming

2 min read


Mar 18

How to Compare ES6 Sets for Equality?

Sometimes, we want to compare 2 JavaScript sets to see if they have the same content. In this article, we’ll look at how to compare 2 JavaScript sets to see if they have the same content. Compare ES6 Sets for Equality We can compare ES6 sets for equality by looping through its contents and check…

Programming

2 min read

How to Compare ES6 Sets for Equality?
How to Compare ES6 Sets for Equality?
Programming

2 min read


Published in JavaScript in Plain English

·Mar 15

How to Get the CSS Top Property Value as a Number Rather Than a String with JavaScript?

Sometimes, we want to get the value of the CSS property as a number rather than a string with JavaScript. In this article, we’ll look at how to get the value of the CSS property as a number rather than a string with JavaScript. Get the CSS Top Property Value as a Number Rather Than a String with JavaScript To get the CSS top property’s…

Programming

2 min read

How to Get the CSS Top Property Value as a Number Rather Than a String with JavaScript?
How to Get the CSS Top Property Value as a Number Rather Than a String with JavaScript?
Programming

2 min read


Published in JavaScript in Plain English

·Mar 11

How to Fix the Issue Where We Can’t Type in a React Input Text Field?

Sometimes, we encounter the issue when we can’t type inside a React input text field. In this article, we’ll look at how to fix the issue when we can’t type inside a React input text field. Set the value and onChange Props To fix the issue when we can’t type inside a React input text field…

Programming

2 min read

How to Fix the Issue Where We Can’t Type in a React Input Text Field?
How to Fix the Issue Where We Can’t Type in a React Input Text Field?
Programming

2 min read


Published in JavaScript in Plain English

·Mar 9

How to Fix the “‘react-scripts’ is not recognized as an internal or external command” Error?

Sometimes, we may encounter the “‘react-scripts’ is not recognized as an internal or external command” error when we try to run our React project. In this article, we’ll look at how to fix the “‘react-scripts’ is not recognized as an internal or external command” error when we try to run…

Programming

2 min read

How to Fix the “‘react-scripts’ is not recognized as an internal or external command” Error?
How to Fix the “‘react-scripts’ is not recognized as an internal or external command” Error?
Programming

2 min read


Published in JavaScript in Plain English

·Mar 4

How to Select All Text from a Text Area with JavaScript

Sometimes, we want to select all text from a text area with JavaScript. In this article, we’ll look at how to select all text from a text area with JavaScript. Select All Text from a Text Area with JavaScript We can select all text from a text area with JavaScript by listening to the focus and mouseup events. For…

Programming

2 min read

How to Select All Text from a Text Area with JavaScript
How to Select All Text from a Text Area with JavaScript
Programming

2 min read


Published in JavaScript in Plain English

·Mar 2

How to Get All Attributes of an Element Using JavaScript or jQuery

Sometimes, we want to get all attributes of an HTML element with JavaScript or jQuery. In this article, we’ll look at how to get all attributes of an HTML element with JavaScript or jQuery. Get All Attributes of an Element Using JavaScript We can get all attributes of an element with JavaScript by using the node.attributes property. For…

Programming

2 min read

How to Get All Attributes of an Element Using JavaScript or jQuery
How to Get All Attributes of an Element Using JavaScript or jQuery
Programming

2 min read


Published in JavaScript in Plain English

·Feb 25

How to Find Indexes of All Occurrences of an Element in a JavaScript Array

Sometimes, we want to find indexes of all occurrences of an element in a JavaScript array. In this article, we’ll look at how to find indexes of all occurrences of an element in a JavaScript array. Find Indexes of All Occurrences of an Element in a JavaScript Array We can find indexes of all occurrences of an element in a JavaScript array…

Programming

2 min read

How to Find Indexes of All Occurrences of an Element in a JavaScript Array
How to Find Indexes of All Occurrences of an Element in a JavaScript Array
Programming

2 min read


Published in JavaScript in Plain English

·Feb 22

How to Convert JavaScript FormData to Object to JSON?

Sometimes, we want to convert the JavaScript form data object to JSON. In this article, we’ll look at how to convert the JavaScript form data object to JSON. Convert JavaScript FormData to Object to JSON We can convert JavaScript form data objects to JSON strings easily with the Object.fromEntries and the JSON.strinnfiyt methods. Object.fromEntries lets us convert…

Programming

2 min read

How to Convert JavaScript FormData to Object to JSON?
How to Convert JavaScript FormData to Object to JSON?
Programming

2 min read

John Au-Yeung

John Au-Yeung

72K Followers

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

Following
  • Scott Myers

    Scott Myers

  • Dr Mehmet Yildiz

    Dr Mehmet Yildiz

  • Techsterr

    Techsterr

  • Ahmed Ginani

    Ahmed Ginani

  • Code.org

    Code.org

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech