32: JavaScript Exercise For Beginners | Dynamic Welcoming Message | JavaScript Tutorial | mmtuts




This JavaScript tutorial will be a JavaScript exercise for beginners, where we learn how to create a dynamic welcoming message, that the users see when entering the website. We will be using most of what we learned in the previous DOM lessons to do this which makes this video great for understanding DOM manipulation.

➀ CHECK OUT THESE AWESOME PEOPLE!

Daniel Simionescu
Meet Daniel: another Full-Stack developer who can teach you coding fast and free πŸ˜€
https://www.youtube.com/channel/UCPIe87uLDW-QZ5FnUZqdxoA

➀ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful πŸ™‚

Material for this lesson: https://www.patreon.com/posts/javascript-32-21529650

Original source


25 responses to “32: JavaScript Exercise For Beginners | Dynamic Welcoming Message | JavaScript Tutorial | mmtuts”

  1. Hi Daniel, thank you very much for your great lessons! I searched online and found a method called textContent and am wondering whether I can write: newElement.textContent = createTxtMsg; so that we may not need to use createTextNode at line 36. I tried it myself and it seemed to work, but I still want to know if it makes any difference by using textContent in this case, thank you!

  2. This is the second TIme I write a Comment to your Video πŸ™‚

    I just wanted to add a tip to your VIdeos. I think you are making the videos a little fast, it could be nice if you try a little bit slower, so the users can follow you!

    I really appreciate your work, its nice and understandable!!

    Thank You

  3. +mmtuts i am e verry beginner in JS, and i want to try to make this message on my portfolio, to say hello to the people who visit it, do you think it's possible? The idea is when the people arrive on the site, after 5 sec for example the message apear with the dynamic content !!

  4. The last else if (currentHour >= 22 && currentHour < 4) doesn't make sense to the browser so it will return the "are you from another planet" message. Therefore, if the value of currentHour = 22, so it can't be greater then 22 and less then 4, which will make this condition always false. The correct condition would be else if( (currentHour >= 22 && currentHour < 24) || (currentHour >= 0 && currentHour < 4) )

  5. this is the first time i watch your video with your face , but your video really make sense and i like to watch every day to learn new thing from you, thank u mmtuts,
    i want to ask u a question, is that good for validation form using javascript, or using php validation ?
    hopefully make a sense : )

  6. Absolutely love your teaching style and examples. Do you think you can do a tutorial on how to save a color scheme in php. For example I have a application with a header and I want my user to be able to change the color scheme and save his color theme. Can’t even imagine how this can be done?

  7. Great video! You're awesome. Keep up the good work and also, I remember that you did a tutorial in JQUERY about a smooth scrolling to another page to a section, I would like to know how is done is JavaScript, and how is done in the same page! Thank you so much, for all the videos. πŸ˜€

  8. Hey Bro I was trying to use audio saying good morning at morning time and good afternoon and so on….
    but i didnot want to see controls button of audio , so I used autoplay property in audio but the problem came that the audio played with no execution of if condition what could be possible error of this?

  9. senpai can you make an another calculator app? just like the normal app? when you press a button outputs the value then calculated? i had seen many calc.js but with different programming habits. can you make it like as a exercise?

Leave a Reply