1
function addUpTo(n: number){
2
	let total = 0;
3

4
	for (let i = 0; i < n; i++) {
5
		total =+ i;
6
	}
7

8
	return total;
9
}