Welcome To Code Bengali Channel we will see Function Return.
When JavaScript reaches a return statement, the function will stop executing.
If the function was invoked from a statement, JavaScript will "return" to execute the code after the invoking statement.
Functions often compute a return value. The return value is "returned" back to the "caller":
let x = myFunction(4, 3); // Function is called, return value will end up in x
function myFunction(a, b) {
return a * b; // Function returns the product of a and b
}
***************** Must Watch Video ******************
➡️ JavaScript introduction--:: https://youtu.be/kAOJe9y17_o
➡️ JavaScript Variables--:: https://youtu.be/yFRlXSFX__4
➡️ JavaScript Function create--:: https://youtu.be/rtUz7GA4IdE
➡️ JavaScript Arrow function--:: https://youtu.be/cp9rGHgFQJQ
➡️ JavaScript Template literals --:: https://youtu.be/inVynulVD38
➡️ Add Html Tags in JavaScript --:: https://youtu.be/2ZLcBg5_Txs
➡️ Comment In JavaScript --:: https://youtu.be/5tN1NsFn0S8
➡️ Data Types in JavaScript --:: https://youtu.be/DL5H70fRIRo
➡️ Arithmetic Operators in JavaScript --:: https://youtu.be/PnweyNo8QUA
➡️ Assignment Operators in JavaScript --:: https://youtu.be/p9pUSysQLy8
➡️ JavaScript Console--:: https://youtu.be/oDjVl3wuKKE
➡️ Comparison operators in JavaScript--:: https://youtu.be/N17D2cO6x8I
➡️ if else statement in JavaScript--:: https://youtu.be/_-w2dCO4M2A
➡️ Logical Operators in JavaScript--:: https://youtu.be/1YFozxPrWZ0
➡️ Ternary Operator in JavaScript--:: https://youtu.be/WICDC4T6hno
➡️ Switch Statement in JavaScript--:: https://youtu.be/glRMNGEN6rA
➡️ else if Statement in JavaScript--:: https://youtu.be/oDQpRgqH-1I
➡️ Alert Box in JavaScript--:: https://youtu.be/LQa8rBp1t64
➡️ Confirm Box in JavaScript--:: https://youtu.be/NeimH-a6lSc
➡️ Prompt Box in JavaScript--:: https://youtu.be/cAfc5RrfmzI
➡️ JavaScript Function Parameter--:: https://youtu.be/BYELk66a28w
Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network.