In this video we’ll work through examples of User Input in Javascript and examples of how to handle the input data we receive.

✅ Quick Concepts outline:
User Input in Javascript
(0:15) Dev Environment
(0:45) alert notifications
(1:45) confirm notifications with boolean data
(2:35) Receiving data input from the user
(3:10) prompt notifications with string data
(4:05) Possible null values returned
(4:43) Nullish Coalescing Operator
(6:10) How to check for an empty string
(7:15) An easy mistake to make!
(7:20) How to check data before accessing properties and methods
(8:50) Eliminating extra white space from user input

📚 Further Reading:
MDN Web Docs:
alert: https://developer.mozilla.org/en-US/docs/Web/API/Window/alert
confirm: https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm
prompt: https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt
Nullish Coalescing Operator: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator

#javascript #web-development #programming #developer

User Input in JavaScript | Tutorial for Beginners
1.65 GEEK