Practice
Short challenges and quizzes that lock in what you learned. Every answer comes with an explanation.
FizzBuzz list
Write fizzBuzz(n) that returns an array of strings from 1 to n. Multiples of 3 become "Fizz", multiples of 5 become "Buzz", and multiples of both become "FizzBuzz". Solve it today for a 15 XP bonus.
Code challenges
Write a function, run the tests, and see exactly which cases pass. 30 XP each.
Reverse a string
Write reverseString(text) that returns the text backwards.
Count the vowels
Write countVowels(text) that returns how many of a, e, i, o, u appear, in any case.
Find the largest number
Write largest(numbers) that returns the biggest number in the array.
Sum of even numbers
Write sumEvens(numbers) that adds up only the even numbers in the array.
Palindrome check
Write isPalindrome(word) that returns true when the word reads the same backwards, ignoring capital letters.
Title Case
Write titleCase(text) that capitalizes the first letter of every word and leaves the rest as it is.
FizzBuzz list
Write fizzBuzz(n) that returns an array of strings from 1 to n. Multiples of 3 become "Fizz", multiples of 5 become "Buzz", and multiples of both become "FizzBuzz".
Quizzes
5 XP for each correct answer on your best attempt.
HTML & CSS basics
Eight questions on tags, attributes, tables, the box model and responsive design.
JavaScript basics
Seven quick questions on variables, decisions, arrays, objects and functions.
C++ basics
Six questions on main, types, decisions, vectors and classes.
C# basics
Six questions on output, interpolation, loops, lists, methods and objects.
C++ & C#: predict the output
Read short programs and say what they print.