Home »
MCQs »
Koa.js MCQs
Which of the following is used to get the value of a cookie based on its name?
27. Which of the following is used to get the value of a cookie based on its name?
- ctx.cookies.obtain()
- ctx.cookies.set()
- ctx.cookies.get()
Answer: C) ctx.cookies.get()
Explanation:
ctx.cookies.get() used to get the value of a cookie based on its name.