Learn JavaScript, Functions, Return Statement Explained, Codecademy Learn Programming with JS ES6

Publié le: 23 février 2022
sur la chaîne: We Will Code
726
11

In this JavaScript Walkthrough from Learn JavaScript, Functions, Return Statement Explained, on Codecademy, we learn that functions by default return undefined. If we want it to return a value, then it is important that we give our function a return statement. A return statement allows us to return a value from our function. If we create a function without a return value and call the function in a console.log(), then undefined would be logged out. If we give our function a return value, then calling the function in a console.log would log out the return value. Understanding Return Statements in JavaScript is key in developing into a great developer. Make sure to understand how return statements work in JavaScript before moving on. It is helpful in JavaScript, and in many other languages!


Sur cette page du site, vous pouvez voir la vidéo en ligne Learn JavaScript, Functions, Return Statement Explained, Codecademy Learn Programming with JS ES6 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur We Will Code 23 février 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 726 fois et il a aimé 11 téléspectateurs. Bon visionnage!