• +91 9723535972
  • info@interviewmaterial.com

JavaScript Framework Interview Questions and Answers

Question - How to read a cookie using JavaScript?

Answer - Reading a cookie is just as simple as writing one, because the value of the document.cookie object is the cookie. So you can use this string whenever you want to access the cookie. • The document.cookie string will keep a list of name = value pairs separated by semicolons, where name is the name of a cookie and value is its string value. • You can use strings’ split() function to break the string into key and values.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners