JavaScript
React Basics
State & Events
Forms, Lists & Conditions
Random
100

This keyword creates a variable whose value can change.

What is let?

100

React is mainly used to build this part of a website.

What is the user interface?

100

This React Hook lets a component remember information.

What is useState?

100

This event runs whenever the user types inside an input.

What is onChange?

100

Whos the founder of Code For Life?

Chris Troy

200

This JavaScript data type can only have the values true or false.

What is a boolean?

200

React uses this HTML-like syntax inside JavaScript.

What is JSX?

200

In this state setup, this is the function that changes the count:

const [count, setCount] = useState(0);

What is setCount?

200

This property gets the value currently typed inside an input.

event.target._____

What is value?

200

Whats the URL for the Code For Life Website?

300

This array method goes through every item and creates a new result for each item.

What is .map()?

300

React uses this word instead of the regular HTML class attribute.

What is className?

300

This event runs when the user presses a button.

What is onClick?

300

This method prevents a submitted form from refreshing the page.

What is event.preventDefault()?

300

How many Piercings does Kevin have? CURRENTLY

2

400

These symbols allow JavaScript to insert a variable into JSX or a template literal.

What are curly braces or ${}?

400

These allow a parent component to send information to a child component.

What are props?

400

Why should React state be used instead of a regular variable when the screen needs to update?

Changing state causes React to re-render the component and update the UI.

400

This prop helps React identify each item rendered using .map().

What is key?

400
Which popular figure visited Code For Life?

Van Jones and Andi Lichtenfeld

500

This syntax copies the contents of an old array into a new array.

"setTasks([_____tasks, newTask])"

What is the spread operator, ...?

500

Put these three parts of a React component in the correct order:

export default
return
function

function → return → export

500

What will this code do?

<button onClick={() => setCount(count + 1)}>
  Add
</button>

It increases count by one when the button is clicked.

500

What does this conditional rendering code mean?

{showMessage && <p>Hello!</p>}

The paragraph appears only when showMessage is true.

500
How many Unique classes does Code For Life offer? As shown of the CFL Website

6

M
e
n
u