codes written while learning havascript