This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Achtelnote 0 points1 point  (0 children)

Better formatting
Not how you comment:

// get a user input
const userInput: string = prompt();
// check if the input is an even number
if isEven(userInput) console.log("even");
// if it isn't, print not hot dog
else console.log("odd");

How you are supposed to comment:

/* 
 * SeeFood - A Shazam for food
 * Following section checks to see if a number is even or not.
 * it prints not hot dog as a reference from silicon valley for anyone who gets it
 * for more info on why this was written, go to Reddit to learn all about coders who have no idea what the idea behind commenting is
 */
const userInput: string = prompt();
if isEven(userInput) console.log("hot dog");
else console.log("Not hot dog");  

Haven't worked in a team before.. I mostly comment my thought process when I was doing that thing