Invisible Technologies interview question

review the two code prompts and discuss which has errors and fix the errors