Witajcie,
próbuje uzupełnić kod. Gotową mam już funkcję getSecret
(to część dłuższego kodu)
function getSecret ( file, secretPasword) {
file.opened = file.opened +1;
if (secretPassword == file.password) {
return file.contents;
}
....
var superSecretFile = {
opened = 0,
password: 2;
contents: "..........".
};
I teraz, co będzie przekazane w drugim parametrze wywołania funkcji getSecret
i dlaczego?
var secret = getSecret (superSecretFile, ____ );
console.log (secret);