{"ScriptPreparationCode":"function setCookie(name, value, days) {\r\n var expires = \u0022\u0022;\r\n if (days) {\r\n var date = new Date();\r\n date.setTime(date.getTime() \u002B (days * 24 * 60 * 60 * 1000));\r\n expires = \u0022; expires=\u0022 \u002B date.toUTCString();\r\n }\r\n document.cookie = name \u002B \u0022=\u0022 \u002B (value || \u0022\u0022) \u002B expires \u002B \u0022; path=/\u0022;\r\n}\r\n\r\nsetCookie(\u0027fdsfs\u0027, \u0027fdsfs\u0027);\r\nsessionStorage.setItem(\u0027fdsfs\u0027, \u0027fdsfs\u0027);\r\nlocalStorage.setItem(\u0027fdsfs\u0027, \u0027fdsfs\u0027);","TestCases":[{"Name":"Session Storage","Code":"sessionStorage.getItem(\u0027fdsfs\u0027);","IsDeferred":false},{"Name":"Local Storage","Code":"localStorage.getItem(\u0027fdsfs\u0027);","IsDeferred":false},{"Name":"Cookie Storage","Code":"const getCookie = (name) =\u003E (\r\n document.cookie.match(\u0027(^|;)\\\\s*\u0027 \u002B name \u002B \u0027\\\\s*=\\\\s*([^;]\u002B)\u0027)?.pop() || \u0027\u0027\r\n)\r\n\r\ngetCookie(document.cookie, \u0027fdsfs\u0027);","IsDeferred":false}]}