Tag: javascript

yarn + unpkg for Quick Prototyping of Front End Applications

If I were working on a serious project right now, I’d init a project with yarn and start installing packages like webpack for it. But today I don’t want to do that, I just want to create a simple local project to mess around with ReactJS and some other javascript packages. I know I could

ReactJS: An Extended Hello World Example In 8 Minutes or Less

It’s often difficult to get started with a new software library or framework; it seems like there are always a mass of concepts, paradigms, and conventions to learn in any new technology. This post gathers together an extended “Hello World” example implemented using the React library, demonstrating a number of the core features of React.

Unit Testing Javascript with Jasmine

Jasmine is a framework for unit testing Javascript code. It has an easy syntax that allows fast creation of human readable, spec-like test code to verify the correct behavior of Java application code. When creating a new npm project that will use jasmine for testing, specify “jasmine” as the test script

Using Bookmarklets for Simple Browser Tasks

Bookmarklets provide a way to add small customized tools to your browser. They look like regular bookmarks, but instead of having a “http:” address to a page on the web, they contain Javascript code that runs whenever the bookmarklet is clicked. Here’s the obligatory “Hello World” demonstration of a bookmarklet: create a new bookmark in

Exploratory Programming with jQuery

jQuery is a widely used framework for inspecting and manipulating the DOM in modern browsers. It’s often one of the fundamental libraries that’s used in major websites, even underlying higher level frameworks like Backbone and AngularJS. But JQuery can also be used as a tool for experimentation, prototyping, and testing ideas and features in developing