آموزش مقدماتی جاوا اسکریپت2024| FUNCTIONS قسمت 22

تعداد بازدید : 6 | تاریخ انتشار : 11 اردیبهشت 1403 14:59 | مدت زمان : 00:12:13 | دسته بندی : فناوری و رایانه

در این دوره آموزشی قصد داریم تا شما را با اصول برنامه نویسی با زبان قدرتمندJavaScript اشنا کنیم. این مجموعه آموزشی یک مجموعه کامل برای آموزش زبان برنامه نویسی JavaScript است . 00:00:00 مقدمه 00:00:14 functions 00:01:57 arguments/parameters 00:04:40 return 00:06:35 example 1 00:07:33 example 2 00:09:30 example 3 00:11:45 conclusion // function = A section of reusable code. // Declare code once, use it whenever you want. // Call the function to execute that code. function happyBirthday(username, age){ console.log(`Happy birthday to you!`); console.log(`Happy birthday to you!`); console.log(`Happy birthday dear, ${username}`); console.log(`Happy birthday to you!`); console.log(`You are ${age} years old!`); } function add(x, y){ return x + y; } function subtract(x, y){ return x - y; } function multiply(x, y){ return x * y; } function divide(x, y){ return x / y; } function isEven(number){ return number % 2 === 0 ? true : false; } function isValidEmail(email){ return email.includes("@") ? true : false; } console.log(happyBirthday("BroCode", 25)); console.log(isValidEmail("Bro@fake.com"));