Small js exercises