JavaScript 2022

Term 3 Wednesday

May - July 2022

This site will be updated live during the sessions

Week 7 Example 5 Good Scope

		
001function aLoopingMessage()
		
002{
		
003	let loops = 10;
		
004	for(let i = 0; i < loops; i++)
		
005	{
		
006		let message = "Msg #" + i;
		
007		console.log(message);
		
008	}
		
009}
		
010
		
011window.onload = aLoopingMessage;