Skip to content

Instantly share code, notes, and snippets.

@lucasomigli
lucasomigli / README.md
Last active December 23, 2017 12:20 — forked from remarkablemark/README.md
Classes - ES5 vs ES6

JavaScript Classes - ES5 vs ES6

An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.

Reference

@lucasomigli
lucasomigli / Blockchain.py
Last active September 11, 2019 12:14
Blockchain Example
import datetime
import hashlib
import random
class Block:
blockNo = 0
data = None
next = None
hash = None
nonce = 0