• Wednesday , 27 May 2020

JavaScript Tutorial For Beginners #20 – Functions

Code Canyon

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 – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

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

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

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

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

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

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

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

Original source

3d Ocean

Related Posts


  1. Roland Arriesgado
    April 21, 2019 at 05:04

    Superb explanation. Much better than Udemy. Thanks shinobi

  2. Rarest Aiden
    April 21, 2019 at 05:04

    now you said additional numbers get ignored but what if you have (a + b + c) and you only put two numbers in the get average section

  3. js learner novice
    April 21, 2019 at 05:04

    let total=0, count=1;
    while (count<=10){
    i didn't understand this piece of code just started learning js so plz can anybody explain it. Thank you

  4. Hotter! Lol
    April 21, 2019 at 05:04

    loved ur videos thanks very helpful

  5. Sam Gerrans
    April 21, 2019 at 05:04

    Finally. Someone explains what functions are and what they do. Thanks!

  6. Aaron Harris
    April 21, 2019 at 05:04

    You explain things at an awesome pace for me man thank you!!! Love your videos!!

  7. Md Rohim Sikder
    April 21, 2019 at 05:04

    nutshell mean in your video? Nice video and great explanation…………………….

  8. Harman Jolly
    April 21, 2019 at 05:04

    why doesnt myresult hv hv dese () in console.log like myresult();

  9. Bruno Morais
    April 21, 2019 at 05:04

    why does brackets keep giving me error in the words document and console? it says they are not defined

  10. ProPavGaming
    April 21, 2019 at 05:04

    At around three minutes in, could you have the "average" variable as a local variable? Then in the code block, you can just say "average = (a + b) / 2"?

  11. lardosian
    April 21, 2019 at 05:04

    could you say 'var myResult = average';

  12. CSS-CHEF
    April 21, 2019 at 05:04

    Thanks for the tutorial, this is the best explanation that i found so far. I will definitely recommend you channel

  13. Eduardo Bianchi
    April 21, 2019 at 05:04

    why do you used the return thing to average? didn't understand that part, what woudl happen if you just put return?

  14. daren tan
    April 21, 2019 at 05:04

    Hi there, thank you for the video upload. May I ask what does "return" do? When is it necessary to include "return"?

    Thank you!

Leave A Comment

You must be logged in to post a comment.