Learn the language of the web.

Recent Post

Load CSS with JavaScript and wait for it to load

You can use JavaScript to only load stylesheets that are necessary to page load.

Zip and compress files in JavaScript

Multiple files can be stored and compressed in a zip file using JSZip.

Using innerHTML in React

How to render a markup string as HTML inside an element in React.

Using Prism syntax highlighter in React

Apply beautiful syntax highlight to your code using Prism in React.

Add comments inside JSX in React

Adding comments inside JSX code require a different approach from HTML or plain JavaScript.

Switch between multiple versions of Node.js in Windows

Install and switch between multiple Node.js versions using Node Version Manager.

Receive form data in Node.js (with and without files)

Receive form data that is url-encoded or of type 'multipart/form-data'

Get URL Parameters in Node.js

URL parameters are data in string format that can be added to the end of a URL.

Get Size of a FormData Object Payload

To do so, you need to make your calculations conditional upon data type.

Validate File Size Before Upload with JavaScript

Minimize server requests by validating file size before uploading.