more examples related to the constructor functionality in js