Advanced JavaScript examples to underestand the concepts