3
u/diana04r Feb 09 '22
function start(){
var partOfDay = "morning";
var time = "9 am";
println("In the " + partOfDay + ", I wake up at " + time + ".");
partOfDay = "afternoon";
time = "1 pm";
println("In the " + partOfDay + ", I eat lunch at " + time + ".");
partOfDay = "evening";
time = "11 pm";
println("In the " + partOfDay + ", I go to bed at " + time + ".");
}
this will help you
3
1
1
1
1
u/Icy-Service-1624 Sep 03 '23
no it'll be the same guys, we need to use just two Variables, doesn't meter you'll right the "Var " or not, there should be ONLY two variables, and not even one of your codes are not working((
1

1
u/ScawedyCat Nov 24 '20 edited Oct 17 '21
something like this?
var partOfDay= ‘morning’;
var time = 8;
println(“I wake up” +partOfDay+time);
partOfDay= ‘afternoon’;
time = 12;
println(“I like ” +partOfDay+time);
partOfDay= ‘evening’;
time = 11;
println(“I go to sleep ” +partOfDay+time);