Modify cookie

Report a typo

Modify the code snippet so that the it logs the same output as given below in the console. Consider that you are accessing the browser's cookie via the cookieName variable.

-fiijwen_=990fej0_ijlwllgwbwoe'

Don't worry if there are other cookies present in your browser. Just focus on the given cookies. The JavaScript function encodes space as %20.

Sample Input 1:

Sample Output 1:

-fii%20jwen_=990fej%200_ijlwllgwbw%20oe
Write a program in JavaScript
let cookieName = "-fii jwen_";
let cookieValue = "990fej 0_ijlwllgwbw oe"

cookieName = ... // Enter code only on this line. Do not console log.
___

Create a free account to access the full topic