What is a Boolean?
This is a block of code designed to perform a particular task.
What is a Function?
The largest egg in the world is layed by this animal.
What is a ostrich?
A ___ is a special " class" that represents a group of constants (unchangeable variables).
What is an enum?
This type can be whole numbers and floating point values.
What is a number?
This function specifies that thhis function returns what a ______.
function getTime(): number {
return new Date().getTime();
}
What is a Number?
This common food condiment was once sold as medicine.
What is Ketchup?
Enums will initialize the first values as ____, by default.
What is 0?
This primitive data type is used to store text data.
What is a String?
Functions Parameters are types with a similar syntax as variable declarations. If no parameter type is defined, TypeScript will default to using what type?
What is Any?
The unicorn is the national animal of this country.
What is Scotland?
This enum contains what simple type?
enum CardinalDirections {
North = 'North',
East = "East",
South = "South",
West = "West"
};
// logs "North"
console.log(CardinalDirections.North);
// logs "West"
console.log(CardinalDirections.West);