Skip to content

Instantly share code, notes, and snippets.

View router.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Building a router</title>
<script>
// Put John's template engine code here...
(function () {
// A hash to store our routes:
@souparno
souparno / Combination Constructor & Prototype Pattern
Last active Jan 4, 2016 — forked from zacksleo/JavaScript Class
Combination Constructor & Prototype Pattern
View Combination Constructor & Prototype Pattern
/**
* Combination Constructor/Prototype Pattern
*/
//constructor
function Something(name){
//properties
this.name = name;
}
//prototype