JavaScript examples for sake of learning