when something is a ‘property’ like the property length, you should use the dot notation to get its value without using the parenthesis (). Use the parenthesis for functions instead.
Its the condition of the if i.e. - (Math.random() <= .1) that must also include the other condition i.e. inventory.length does not equal (!== ) one.
Not equal to is written like this !==
so Not equal to 1 is written like this !==1
so inventory.length does not equal one is written …
For your if statement to evaluate 2 conditions using the AND operator the if is written like below
if( (condition 1) && (condition 2) ){
statement/s to be execcuted if both conditions are true
}
In this challenge condition 1 is already there i.e. (Math.random() <= .1)
All you now want is to condition 2
Do not forget to remove the brackets on condition 1 and condition 2
The statement/s to be executed if both conditions are true you don’t change