www.learntoprogram.tv
Javascript functions allow you to create a piece of code and execute at any point during the execution of the program. This Javascript tutorial discusses Javascript functions, function calls, passing arguments to a function, returning values from a function, and the scope of variables within a function. This Javascript tutorial is hosted by Learntoprogram.tv’s Mark Lassoff, a corporate technical trainer who leads classes for software, web and eLearning developers all over the country. Continue learning Javascript as instructor Mark Lassoff reviews Javascript functions.
Get a Free Subscription to LearnToProgram Magazine
https://learntoprogram.tv/p/free-learn-to-program-magazine-offer/?src=YOUTUBE
Certified, Professional Developer Program: Become a Professional Software Developer in as Little as 20 Weeks without Stepping Foot in a Classroom
https://learntoprogram.tv/p/framework-professional-developer-bootcamp/?src=YOUTUBE
LearnToProgram.tv is one of the internet’s leading resources for coding and programming education. We offer courses on HTML, CSS, PHP, MySQL, jQuery, Python, and many other programming languages, along with iOS and Android Development.
Original source
8 responses to “Javascript Tutorial Part 7: Javascript Functions”
Thank you 😀
Thank you!
Good explanation, but for beginners there is too much jumping around you begin to lose yourself.
Mark! Fantastic. I will be watching the rest of your vids. For years OO programmers have been telling me that I wouldn't understand what they do because I was a mainframe/assembler/COBOL programmer. I now know that the OO simply couldn't explain what OO was so that it made sense. Now you have done it for JavaScript. Thanks!
Newbie here. The part about an argument concluding at the 5:06 mark, could we have gotten the same result with simply writing something like this:
var generate = alert("This was generated by a function");
var oneOOne = alert ("101");
?
f. Check whether date1 falls in a leap year or not and display an
appropriate message in the output window accordingly.
1. Write JavaScript statements to do the following:
a. Create the date 1 March 1995 and assign it to the variable date1.
b. Create a date representing today’s date and assign it to the variable
date2.
c. Calculate the difference in days and years between date1 and date2
and print them in the output window.
d. Change the month of date1 to be January.
e. Print the month of date1 in the output window.
Hi
Thank you for your magnificent fun and style
and i hope you help me in this;