YourJS Blog Posts

Blog posts and examples showing how to best use YourJS and JavaScript in general.

CORS Anywhere Function

Having the ability to fetch data regardless of the origin is something that developers often want. Fortunately for you I have a function that you can use to easily do this.

Written on Wednesday, August 12th, 2020 at 10:52PM.

Snippet - toggleFullscreen()

A JavaScript snippet that can be used to toggle the fullscreen view of the document or an element.

Written on Thursday, February 27th, 2020 at 2:35PM.

YourJS.nativeType()

Using typeof can be very useful in certain cases to find the type of a primitive, but how can you find the type of an object such as an array or a date? You can use YourJS.nativeType().

Written on Monday, September 9th, 2019 at 10:44AM.

Understanding URLs

Learn the basics of URLs by playing around with the different parts of any URL.

Written on Wednesday, September 4th, 2019 at 12:59PM.

Embed A GitHub Gist File

Get the code to embed the GitHub Gist file of your choice.

Written on Friday, August 23rd, 2019 at 2:50PM.

How To Use YourJS.timeAgo()

A brief example showing how to use the YourJS.timeAgo() function to show in a human readable (English) way how long ago the specified date occurred.

Written on Thursday, March 7th, 2019 at 4:57PM.

Named Capture Groups

Learn about named capturing groups now that it has been added to ECMAScript (AKA JavaScript) as of ES2018. Try out some examples!

Written on Monday, March 11th, 2019 at 6:12PM.

Sandbox Code Using Web Workers

A quick example of how to use web workers to run sandboxed JavaScript. There are benefits and downsides to this approach.

Written on Tuesday, March 5th, 2019 at 9:29AM.