JavaScript Programming Tutorial 51 - Passing Arguments by Value - Functions Part 2

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

you're the perfect teacher for beginners

rojamalar
Автор

Really got that one with passing an object to a parameter of a function
Thx

alin-alexandru-peter
Автор

I';m still confused tbh, but I'll move to the next stage and try to see if the examples make it more clear to me.

KaminariGame
Автор

At 7:30 the function calls x but reassigns it to an empty object, so it won't be able to use nothing in it, would it not have been better to assign
let y=x;
y.name="sally";
?

aurelianoskirzewski
Автор

I'll wait till the examples, cause I'm still confused

jonldavis
Автор

function getPersonName(x) {
x = x.name;
return x;
}
let person = {name: 'caleb'};

shifronim