خوشحال می شیم اگه تو گروه هم عضو بشین 👇
@xstack 👈
@xstack 👈
شرط هند ها به ما کمک می کنن که هم سریعتر کد بزنیم و هم تمیزتر.
/* JS Shorthands @devefun */
/* If true shorthand */
if (value === true) {
...
}
if (value) {
...
}
/* Declaring variable shorthand*/
let x = 5
let y
let x = 6
let x = 5, y, z = 6
/* Converting a string into number shorthand*/
const num1 = parseInt("25");
const num2 = parseFloat("45.6");
const num1 = +"25";
const num2 = +"45.6";
/* Exponent power shorthand */
Math.pow(4, 5) //1024
4 ** 5 //1024
/* For Loop shorthand */
const cars = ["Mercedes", "BMW", "Ford"]
for (let i = 0; i < cars.length; i++) {
...
}
const cars = ["Mercedes", "BMW", "Ford"]
for (let car of cars) {
...
}
/* Object property shorthand */
const name = "Feri"
const age = 27
const myObj = {
Name: name,
Age: age
}
const name = "Feri"
const age = 27
const myObj = {name, age}
/* Arrow function shorthand*/
let multiply = function (x, y) {
return x * y;
}
console.log(multiply(5, 5)) //25
let multiply = function (x, y) => x*y;
console.log(multiply(5, 5)); //25
@devefun ✌️
/* JS Shorthands @devefun */
/* If true shorthand */
if (value === true) {
...
}
if (value) {
...
}
/* Declaring variable shorthand*/
let x = 5
let y
let x = 6
let x = 5, y, z = 6
/* Converting a string into number shorthand*/
const num1 = parseInt("25");
const num2 = parseFloat("45.6");
const num1 = +"25";
const num2 = +"45.6";
/* Exponent power shorthand */
Math.pow(4, 5) //1024
4 ** 5 //1024
/* For Loop shorthand */
const cars = ["Mercedes", "BMW", "Ford"]
for (let i = 0; i < cars.length; i++) {
...
}
const cars = ["Mercedes", "BMW", "Ford"]
for (let car of cars) {
...
}
/* Object property shorthand */
const name = "Feri"
const age = 27
const myObj = {
Name: name,
Age: age
}
const name = "Feri"
const age = 27
const myObj = {name, age}
/* Arrow function shorthand*/
let multiply = function (x, y) {
return x * y;
}
console.log(multiply(5, 5)) //25
let multiply = function (x, y) => x*y;
console.log(multiply(5, 5)); //25
@devefun ✌️
Media is too big
VIEW IN TELEGRAM
💢 قسمت هجدهم - کلاس MySqli در PHP و بایند کردن پارامتر ها، بکاپ گیری از دیتابیس، pagination
💢 مجموعه آموزش PHP & MYSQL فصل اول ( مقدماتی - متوسط)
پخش همزمان: (هر دوشنبه)
#آموزش_PHP #آموزش_PHP_فصل_اول #php #mysql
پ.ن: هرگونه کپی برداری از آموزش کاملا بلا مانع میباشد 😉
@devefun ✌️
💢 مجموعه آموزش PHP & MYSQL فصل اول ( مقدماتی - متوسط)
پخش همزمان: (هر دوشنبه)
#آموزش_PHP #آموزش_PHP_فصل_اول #php #mysql
پ.ن: هرگونه کپی برداری از آموزش کاملا بلا مانع میباشد 😉
@devefun ✌️
جواد خیابانی برنامه نویس میشود 😂😂😂🤣
@devefun
@devefun