Test code while learning JS