Some basic and advanced JavaScript examples.