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
ArticleDirectory
Javascript Introduction
How to Implement Javascript
Where to place Javascript
Javascript statements
Javascript Variables
Javascript Operators
Javascript branch statement
Javascript message box
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:
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
*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
Directory1 History 2 clarifying misunderstandings 3 basic concepts 4 features 5 different from Java 6 development toolsHistoryProbably in 1992, a company called Nombas began developing an embedded scripting language called C-minus (C-minus-minus, or
Value: The operation of a computer program requires the operation of the value (values).
Data type: A type that can be represented and manipulated is called a data type.
Variable: When the program needs to save the value for future use, it assigns
This article mainly introduces the types, values, and variable Summary of JavaScript. You can refer to the following: JavaScript data types are divided into two types: primitive type and object type. Five primitive types: Numbers, strings, Boolean
JavaScript implements variable parameter functions, and javascript variable parameters
When using javascript class library functions, you may often encounter a function that can use different numbers of parameters.
For example:. Code
Exp (var1)
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.