Upload files to "/"

This commit is contained in:
2025-10-27 11:50:13 -05:00
parent a383913b42
commit 441c290663
5 changed files with 230 additions and 0 deletions

15
StringChallenge.ts Normal file
View File

@@ -0,0 +1,15 @@
function fizzBuzz(n: number): string[] {
let h = []
for (let i=1; i<=n;i++) {
let string = ''
if (i % 3 === 0){
string += 'Fizz'
} else if (i % 5 === 0) {
string += 'Buzz'
} else if (string === '') {
string += i
}
h.push(string)
}
return h
};