Deprecated: Function create_function() is deprecated in /var/www/vhosts/ on line 70
32: JavaScript Exercise For Beginners | Dynamic Welcoming Message | JavaScript Tutorial | mmtuts |
  • Tuesday , 27 October 2020

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

Code Canyon

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.


Daniel Simionescu
Meet Daniel: another Full-Stack developer who can teach you coding fast and free 😀


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:

Original source

3d Ocean

Related Posts


  1. Hamzah Abdelmoaty 2
    January 7, 2020 at 08:53

    ;)شكرا thats how we say thanks in arabic

  2. Chow Gauchuen
    January 7, 2020 at 08:53

    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!

  3. Mouaz van Dyk
    January 7, 2020 at 08:53

    Are you from a different planet! :O .it shows me always this message in the console 🙁 why ? what can i do ? +mmtuts

  4. Dawid Dahl
    January 7, 2020 at 08:53

    Thank you so much for these lessons. Really helpful!

  5. Neshat Ademi
    January 7, 2020 at 08:53

    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

  6. Frederic Guerra
    January 7, 2020 at 08:53

    +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 !!

  7. Cristian Lovas
    January 7, 2020 at 08:53

    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) )

  8. Tanto Wijaya
    January 7, 2020 at 08:53

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

  9. FiveDog
    January 7, 2020 at 08:53

    Can u help me ? / mail is

  10. Rifat Ahmed
    January 7, 2020 at 08:53

    Awesome stuff..a BIG like 👍👍👍👍👍

  11. The Game Project
    January 7, 2020 at 08:53

    Thanks to your php lessons I (with your help) created this website

  12. westfield90
    January 7, 2020 at 08:53

    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?

  13. Maliha Kabir
    January 7, 2020 at 08:53

    Can't wait for more for your next episode O:)

  14. Angel Rico
    January 7, 2020 at 08:53

    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. 😀

  15. 리카안젤
    January 7, 2020 at 08:53

    I like how your channel is active and tutorials are just recent. The others are like 9 years ago

  16. Engine Badri
    January 7, 2020 at 08:53

    I need first chapter can i get

  17. Footy Pick
    January 7, 2020 at 08:53

    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?

  18. saurabh mall
    January 7, 2020 at 08:53

    please make video series for ANGULAR JS. Thank you

  19. NERO
    January 7, 2020 at 08:53

    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?

  20. Muhammad Rafiuddin
    January 7, 2020 at 08:53

    Very good to understand. this is my first video I've watch to learn javascript. Thank you man..

  21. Impulse
    January 7, 2020 at 08:53

    Sir you do explain nice,
    Please make a large assignment on JavaScript with html

  22. Badr Biyadi
    January 7, 2020 at 08:53

    Thank you so much , your videos help me a lot <3

  23. Mounir Ps
    January 7, 2020 at 08:53

    A very helpful video, bro, thanks, so much.

  24. Brent Meeusen
    January 7, 2020 at 08:53

    Last else if() is never true…
    x cannot be > 22 AND < 4.. Just saying 🙂

  25. 899 Frankenstein
    January 7, 2020 at 08:53

    What does this function "createtextnode" actually do? Why u can't just insert content with inner html.

Leave A Comment

You must be logged in to post a comment.