πŸ“Š Machine Learning
Q. Which of the following function is used as a consequence of not including semicolons, commas or whitespace in the Cookie value?
  • (A) encodeURIComponent()
  • (B) encodeURI()
  • (C) encodeComponent()
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) encodeURIComponent()

Explanation: Cookie values cannot include semicolons, commas, or whitespace. For this reason, you may want to use the core JavaScript global function encodeURIComponent() to encode the value before storing it in the cookie.

Explanation by: Mr. Dubey
Cookie values cannot include semicolons, commas, or whitespace. For this reason, you may want to use the core JavaScript global function encodeURIComponent() to encode the value before storing it in the cookie.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
109
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate