Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 251 Bytes

File metadata and controls

19 lines (12 loc) · 251 Bytes

Break-Continue

These are even uglier than the while loop. They work like you expect them to, in while and for loops. They are statements. Don't use them please!

y = 0;
while y < 10 {
	
	if y == 5{
		break;
	}

	y++;
}

y ==5; //true