User Input in Javascript | Tutorial for Beginners

preview_player
Показать описание

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
(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:

📺 More Beginner JS Videos:

✅ Follow Me:

#User #Input #Javascript
Рекомендации по теме
Комментарии
Автор

Thank you Dave!
8:40 - I was following you in VSC and everything worked for me as well. The only difference I have is that "name" appears to be crossed out in lines 2 and 4. It might has something to do with VSC extentions. When I hover over the name in VSC there is an info "const name : void".

Grihlo
Автор

never knew about the ?? operator, very neat one! Great video as always Dave, Thanks.

hadibq
Автор

Great work
You covered a lot of concepts in this lecture
Please have some quizzes at the end. Thanks

abdulwaheed-ksec
Автор

hello sir, Thanks for the video, I watched all your videos and God bless you sir ❤️🥰 this is awesome

cjabarca
Автор

Hello sir . I really liked your video👍. Can you please make a video on how to go from one page to another in React js.🙏🙏Please sir🙏

abhay
Автор

does anyone know how to do this just in javascript and enter the input just in the console instead of a browser?

joshcar
Автор

as a frontend dev i dont need data part yeah?

rabitenaziriperyserdi
Автор

how did you open your node code on google ?!

sirmohammed