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.

24th Sep 2020, 12:53 PM
Ilyaaz Ali
Ilyaaz Ali - avatar
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.
25th Sep 2020, 4:27 PM
Josh Greig
Josh Greig - avatar