Ex 11


#1

Please help me my code didn't work...

var faim = true;
var nourritureIci = true;
var manger = function(faim,nourritureIci) {
if (faim=true && nourriture=true) {
return true;
} else {
return false;
}
};


#2

Sorry, but still doesn't work

var faim = true;
var nourritureIci = true;
var manger = function(faim,nourritureIci) {
if (faim=true && nourritureIci=true) {
return true;
} else {
return false;
};
};


#3

function should not take any arguments!!