Posts by "bret"

Closure Example

All functions in JavaScript are closures. They will retain their state while there is still a reference...

React Example

A simple example of using ReactJS in the browser

Custom Elements

An example of writing a custom HTML element

Shadow Dom

A Web Component that uses the Shadow Dom.

Javascript Rest Operator Demo

A demonstration of JavaScript rest operator as a parameter to a function. Notice how ... args is grouped...

Fat Arrow Functionception

A JavaScript fat arrow function as parameter to a function that takes and executes a function. Click Run...

Jquery Css Syntax

A JQuery CSS Syntax example that uses with multiple rules.

Fetch Data Then Append Using Yumjs

Fetch data then append to document using YumJS

Use Filter In Js To Get Odd Numbers

This nifty JavaScript function will return add numbers from a set of numbers.

Json Fetch And Parse

Fetching and parsing JSON with Vanilla JS

Fizzbuzz Solution

A couple of FizzBuzz solutions in JavaScript. Be sure to toggle the console.

Even Or Odd Characters From String In Javascript

A JavaScript function to output even or odd characters from a string.

Accessing Object Properties

Accessing Object properties demo from Reddit.

Jquery Style Method Chaining In Vanilla Js

A demonstration of class based method chaining in vanilla JavaScript.

Bring To Bottom Using Yumjs

Move clicked buttons to bottom

Yumjs Component With Props Example

How to pass in props with components in YumJS.


parks json

Parse Json With Yumjs

Using YumJS to parse and display results of parks json async fetch.

Responsive Layout With Css Grid

Responsive Website Layout using CSS Grid.

Check If Two Strings Are Anagrams

Check if two strings are anagrams of one another in JavaScript.

Fetching Text Results

Fetching text results with JavaScript fetch.

Reverse A String In Javascript

Reverse a string in JavaScript and display it with YumJS.

The Scope Of This

A quick demonstration of what this points to in JavaScript.

String Reverse In Javascript

Reverse a string using the spread operator in JavaScript.