demos code for JavaScript Core Concepts and Practises