Discover store function in variable javascript, include the articles, news, trends, analysis and practical advice about store function in variable javascript on alibabacloud.com
1) Intro
Not long ago I set up a technology group in a MM asked a question like this, she posted the code as follows:
var a = 1;function hehe (){Window.alert (a);var a = 2;Window.alert (a);}Hehe ();
The results of the execution are as follows:
In Javascrip, a function is a built-in class object, which means that it is a type of object that can be used for the management of built-in objects just like other objects of the string, Array, number, and object classes. Because the function is
ArticleDirectory
Javascript Introduction
How to Implement Javascript
Where to place Javascript
Javascript statements
Javascript Variables
Javascript Operators
Javascript branch statement
Javascript message box
Document directory
I. What is JavaScript?
Ii. Start of JavaScript programming
Iii. Implementation basics of JavaScript
Iv. Summary of this Chapter
From the beginning of college, I began to learn how to create web pages and began to access
*1, Variable type:JavaScript is a weak type, a variable can store any type, and the run-time type is variable;-> variables can be converted to type;*/
/*2, Variable declaration:*/var i;var index;var i, index;var i = 0, index = 2;/*Variable
JavaScript is becoming more and more popular. It can be said that it is one of the most prominent languages on the Internet. You can use it across platforms and Browsers without rejecting backend languages. There are many different development
JavaScript BasicsJavaScript is a scripting language that belongs to the web!JavaScript is used by millions of of pages to improve design, verify forms, detect browsers, create cookies, and more.JavaScript is the most popular scripting language on
JavaScript is weak type, variables can store any type, and the type is variable during running
The Code is as follows:
/*1. Variable type:JavaScript is weak, variables can store any type, and the type is variable during running;-> Variable type
Judgment of variable types in javascript, javascript Variables
Address: http://www.xiabingbao.com/javascript/2015/07/04/javascript-type
In JavaScript, there are 5 basic data types and 1 complex data type. The basic data types include:Undefined,Null,
We often see some data types in javascript, such as "undefined", "boolean", and "string, this article will help you learn the basic JavaScript data types, value types, and reference types. For more information, see this article, four basic data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.