0
Hello can some one help me with this syllogism using if statements in javascript
All men are mortals. Socrates is a man. There for Socrates is a mortal.
1 Respuesta
0
Something like this roughly lines up.
var socrates ={'sex': 'man'};
if (socrates.sex === 'man' )
socrates.isMortal = true;
If socrates is not a man, it is unknown whether socrates is mortal or not so I didn't set isMortal to false in an else section.