added ternary statement with 2 console.log sentences
added workspace file to idea folder