{"ScriptPreparationCode":null,"TestCases":[{"Name":"1231","Code":"const userGuess = 1995\r\nconst PIN = 2000\r\nlet guessOutput = \u0027\u0027\r\n\r\nif(userGuess \u003E= 1000 \u0026\u0026 userGuess \u003C= 9999 \u0026\u0026 Number.isInteger(userGuess)) {\r\n if(userGuess === PIN) {\r\n guessOutput = \u00271\u0027\r\n }\r\n \r\n if(userGuess \u003E= PIN \u002B 2000) {\r\n guessOutput = \u00272\u0027\r\n } else if(userGuess \u003E PIN) {\r\n guessOutput = \u00273\u0027\r\n } else if(userGuess \u003C= PIN - 2000) {\r\n guessOutput = \u00274\u0027\r\n } else if(userGuess \u003C PIN) {\r\n guessOutput = \u00275\u0027\r\n } \r\n}","IsDeferred":false},{"Name":"123","Code":"const userGuess = 1995\r\nconst PIN = 2000\r\nlet guessOutput = \u0027\u0027\r\n\r\nfunction message() {\r\n const error_object = {\r\n [userGuess \u003E= PIN \u002B 2000]: \u0027Muito maior\u0027,\r\n [userGuess \u003E PIN]: \u0027Maior\u0027,\r\n [userGuess \u003C= PIN]: \u0027Muito menor\u0027,\r\n [userGuess \u003C PIN]: \u0027Menor\u0027\r\n }\r\n \r\n const correct_message = \u0027Congrats\u0027\r\n \r\n return error_object[true] || correct_message \r\n}\r\n\r\nif(userGuess \u003E= 1000 \u0026\u0026 userGuess \u003C= 9999 \u0026\u0026 Number.isInteger(userGuess)) {\r\n guessOutput = message() \r\n}","IsDeferred":false}]}