{"ScriptPreparationCode":null,"TestCases":[{"Name":"Old spice","Code":"const response = {\r\n \u0022$metaData\u0022 : {\r\n \t\u0022httpStatusCode\u0022 : 404\r\n }\r\n}\r\n\r\nlet foo = false;\r\n\r\nif (response \u0026\u0026 !!response.$metadata \u0026\u0026 !!response.$metadata.httpStatusCode \u0026\u0026 response.$metadata.httpStatusCode\u003E= 400) {\r\n\tfoo = true;\r\n}\r\n\r\n","IsDeferred":false},{"Name":"Optional chaining","Code":"const response = {\r\n \u0022$metaData\u0022 : {\r\n \t\u0022httpStatusCode\u0022 : 404\r\n }\r\n}\r\n\r\nlet foo = false;\r\n\r\nif(response?.$metaData?.httpStatusCode) {\r\n foo = true;\r\n}\r\n ","IsDeferred":false}]}