JavaScript Tutorial For Beginners #20 - Functions

Опубликовано: 07 October 2024
на канале: Net Ninja
104,732
1.8k

Hey class, so in this JavaScript tutorial I want to introduce you to the world of functions. Yep, I think you're ready for them :). Functions allow you to chunk parts of code together into logical sections, and call that code at any time. For example, you may have a function to cycle through all of your images on a web page, and implement a zoom functionality on the. You'd probably call this function something like imageZoom.

So, functions are a really cool and integral part of JavaScript, and something you should try and get into the habit of using early on in your JavaScript development, so that your code is always readable and tidy for yourself and other developers.

At first, functions in JavaScript can be a tricky concept, so by all means fire away with any questions you have down below :).

SUBSCRIBE TO CHANNEL -    / @netninja  

========== JavaScript for Beginners Playlist ==========

   • JavaScript Tutorials for Beginners  

========== CSS for Beginners Playlist ==========

   • CSS Tutorials For Beginners  

========== HTML for Beginners Playlist ==========

   • HTML Tutorials For Beginners  

========== The Net Ninja ============

For more front-end development tutorials & to black-belt your coding skills, head over to -    / @netninja   or http://thenetninja.co.uk

========== Social Links ==========

Twitter - @TheNetNinja -   / thenetninjauk