Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

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

▶ This video is part of the JavaScript Tutorials for Beginners Playlist found here: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6Oi6xNtL_fwCrwpuqylMsgT

Quick Concepts outline:
User Input in Javascript
(00:00) Intro
(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

More Beginner JS Videos:
freeCodeCamp: https://youtu.be/PkZNo7MFNFg
Traversy Media: https://youtu.be/hdI2bqOjy3c
The Net Ninja: https://youtu.be/iWOYAxlnaww

Follow Me:
Twitter: https://twitter.com/yesdavidgray
Reddit: https://www.reddit.com/user/DaveOnEleven
Medium: https://medium.com/@davegray_86804

#User #Input #Javascript