20: Date methods in JavaScript - Learn JavaScript front-end programming
HTML-код
- Опубликовано: 2 окт 2024
- Date methods in JavaScript - Learn JavaScript front-end programming. In this video we will learn about date methods which allow for us to show and edit the current date inside our websites.
List of date methods: www.w3schools.c...
Lesson material: www.dropbox.co...
--
mmtuts is a RUclips channel that focuses on teaching beginner and advanced courses in various multimedia related skills.
We plan to make tutorials available on programming, video production, animation, graphic design, and on software such as the Adobe Creative Cloud programs.
JavaScript for beginners is a how to series that teaches the JavaScript coding language to people who are just starting out learning programming. The course teaches how JavaScript scripting can be made easy and teaches how to build many features on websites through behavior using JavaScript. Creating behavior on websites with JavaScript is easy and should not be seen as otherwise, which is why we want to explain the language in a easy to understand way for beginners.
If you have suggestions on new courses, or specific lessons within existing courses you would like to see, then feel welcome to submit them in the comment section or in a private message. ALL suggestions will be seen, but not all will be replied to since we get quite a few every day.
Its a bit confusing to name your variable 'getDate'.
Why is the date 4/0/2017 instead of 4/1/2017
Because getMonth() method starts from 0 to 11 which means 0 is January.
also you can just add +1 to the month , so you can get the actual month :DDD
I suggest you follow the standard OOP convention for naming functions and variables. Quite often you give functions names which are appropriate for variables and vice-versa.
can u please make tutorials on angularJS please
Thank you so much your tutorial is very clear and simple
You have great voice for teaching. But why you always spell document.getElementById like "documents.getElementsById"
It's just a speach thing I don't notice as I am saying it :)
Hello, just a small question (I hope it isn´t too dumb). Why does the date gets printed without calling the writing method?
document.getElementById("...").innerHTML is the function that print the date to the website
@@chronoshift1423 its not a function ,its a property
you can also write .textcontent instead of innerhtml
Sougata Ghar I dont remember saying this ?? This is weird
cool