LazyMan("gary"); //Hi this is gary! LazyMan("gary").sleep(3).eat("dinner"); // Hi this is gary! // Wake up after 3s! // Eat dinner ! LazyMan("gary").sleepFirst(2).eat("dinner"); // Hi this is gary! // Eat dinner ! // Wake up after 2s! LazyMan("gary").sleep(2).eat("supper").sleep(1).eat("dinner") // Hi this is gary! // Wake up after 2s! // Eat supper ! // Wake up after 1s! // Eat dinner !
LazyMan("gary"); //Hi this is gary! LazyMan("gary").sleep(3).eat("dinner"); // Hi this is gary! // Wake up after 3s! // Eat dinner ! LazyMan("gary").sleepFirst(2).eat("dinner"); // Hi this is gary! // Eat dinner ! // Wake up after 2s! LazyMan("gary").sleep(2).eat("supper").sleep(1).eat("dinner") // Hi this is gary! // Wake up after 2s! // Eat supper ! // Wake up after 1s! // Eat dinner !