For example, if we have the following object in javascript:
var person,
    property;
    
    person = {
        firstName: "John",
        lastName:"Doe",
        age: 50,
        eyeColor: "blue",
        hairColor: "black",
        profession: "doctor"
    }
How do I print out only the second and fourth property of this object with for-in and if-else?
 
     
    