Lambda Function If Else Javascript Programiz