added statement and comment for console.log on "if" statement
added workspace to idea folder