Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

I Am not able to do this can you please help in this?

I am trying to solve calculator problems but i am not able to proceed in that can you please help me?
by

2 Answers

iamabhishek
Hi, please share on which step you are stuck so that I can help you with the code.
imbsg
<html>
<head>
<script>
// fetch cookie to check
let cookie = document.cookie;

if (cookie.search("Hello=World") >= 0) {
console.log("Cookie found");
} else {
// create cookie
document.cookie = "Hello=World";
console.log("Cookie not found");
}

// fetch cookie to print value
cookie = document.cookie;
document.write(cookie);
</script>
</head>
<body></body>
</html>


THIS IS NOT WORKING IN THE TUTORIAL AND I HAVE BEEN STUCK FOR 3 HRS PLEASEHELP ME AND PROVIDE ME THE SOLUTION , COURSE JAVASCRIPT LESSON 11, LESSON 7 , COOKIES

Login / Signup to Answer the Question.