0 votes
in JavaScript by
Can we create Cookie in Javascript if yes then how to create that?

1 Answer

0 votes
by

Yes, we can create that we can even create, read, update and also delete the cookie by using "document.cookie" property. And below is the syntax to create a cookie:-

document.cookie="name=value";

And below is the example to handle and create cookie

And below is the example to handle and create cookie



Javascript Cookie
...