What is a ‘Controlled Component’?
A controlled component is a component that renders form elements and controls them by keeping the form data in the component’s state.
Should we wait to store the users responses from the form into state when they submit the form OR should we update the state with their responses as soon as they enter them? Why.
we can give the user instant feedback without having to wait for them to submit the form

JavaScript — The Conditional (Ternary) Operator
Use the ternary operator to simplify your if-else statements that are used to assign values to variables. The ternary operator is commonly used when assigning post data or validating forms.
Rewrite the following statement using a ternary statement:
( if(x===y){
console.log(true);
} else {
console.log(false);
}```)
Answer :
(x==y ? value if console.log(true) : value if console.log(false))
