Create a function arrayLength that logs the length of an array of colors.
declareName
4 months agoCreate a function declareName that declares a variable named `name` and assigns your name to it, then logs it.
piConstant
4 months agoCreate a function piConstant that declares a constant \`PI\` with the value 3.14, then logs it.
primitiveTypes
4 months agoCreate a function primitiveTypes that declares and logs a string, number, boolean, null, and undefined value.
dynamicTyping
4 months agoCreate a function dynamicTyping that reassigns a variable from number to string and logs the typeof before and after.
typeConversion
4 months agoCreate a function typeConversion that converts a string to a number and a number to a string, then logs both types.
createObject
4 months agoCreate a function createObject that defines an object with name, age, and isStudent, then logs it.
arrayAccess
4 months agoCreate a function arrayAccess that defines an array with at least three fruits and logs the second item.
sayHello
4 months agoCreate a function sayHello that takes a name as an argument and logs 'Hello, <name>!'
introWithTemplate
4 months agoCreate a function introWithTemplate that uses template literals to print: 'My name is <name> and I am <age> years old.'
combineStrings
4 months agoCreate a function combineStrings that takes two strings and logs them combined with a space in between.
arrayLength
4 months agoCreate a function arrayLength that logs the length of an array of colors.
accessObjectProperty
4 months agoCreate a function accessObjectProperty that defines an object with `name` and logs the value using dot notation.
functionWithReturn
4 months agoCreate a function addTwo that returns the sum of two numbers. Log the returned value.
templateList
4 months agoCreate a function templateList that takes an array of three fruits and logs: 'I like <fruit1>, <fruit2>, and <fruit3>'.