Exercises from the book 'Pragmatic Guide to JavaScript'