TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hemanth M
NA
2
3.9k
Global variable is not updated javascript
Jun 30 2017 8:09 AM
I have
globe.js
,
demo1.html
,
demo2.html
here im declared
var a = 10;
in the global and then i reassigned the value of variable a in the demo1
window.a = 20
then i have anchor tag click to redirect to demo2 now im checking the value of a here
alert(a);
still it shows the global variable
value 10
but i have been reassigned in demo1
showing old value of global
please help me to find out...
Reply
Answers (
3
)
Javascript What is constructor function
Execute JavaScript in a modal window