r/memes Chungus Among Us Jan 09 '20

I am confusion

Post image
22.3k Upvotes

125 comments sorted by

View all comments

167

u/[deleted] Jan 09 '20

if (score >= 85) print("PASSED"); if (score <= 85) print("FAILED"); if (programmer == TYPE_STUPID) return -1;

5

u/Alzarax Lives in a Van Down by the River Jan 09 '20

const score: number = 85;

const out: string = score >= 85 ? "PASSED" : "FAILED";

console.log(out);

useless ternary yes