当前位置:网站首页>Sixth note
Sixth note
2022-07-05 04:51:00 【jokererty】
【 Optimal limit 】 HTML+CSS+JavaScript+jQuery Front end must learn tutorial , Xiaobai teaching , Complete version of front-end foundation _ Bili, Bili _bilibili<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title> Type conversion </title>
</head>
<body>
<script type="text/javascript">
console.log("==========");
console.log(1=='1');
console.log(1==='1');
var arr1 = [];
console.log(arr1);
var arr2 =[1,2,'a',true];
console.log(arr2);
var arr3 = new Array(1,2,3);
console.log(arr3);
var arr4 = new Array(5);
console.log(arr4);
console.log("==========");
console.log(arr2[1]);
console.log(arr2[10]);
arr2[1]=20;
console.log(arr2);
arr2[10] = 100;
console.log(arr3.lenght);
arr3.length = 5;
console.log(arr3);
arr3.name = "zhangsan";
console.log(arr3);
arr3["pwd"]="123456";
console.log(arr3);
console.log(arr3["name"]);
console.log("==========");
console.log(arr3);
console.log("for Traversal cycle ");
for(var i =0; i<arr3.length;i++) {
console.log(" Subscript :" +i+ " value :"+arr3[i] );
}
console.log("---for...in----");
for (var i in arr3){
console.log(" Subscript :" +i+ " value :"+arr3[1]);
}
console.log("---forEach----")
arr3.forEach(function(element,index){
console.log(" Subscript :" +index+" value :"+element);
})
console.log("==========");
var arr5 =["a","b","c"];
arr5[arr5.length]="d";
arr5.push("e")
console.log(arr5);
console.log(arr5.indexOf("a"));
console.log(arr5.indexOf("t"));
console.log(arr5.join("-"));
var str = "1,2,3,4,5";
console.log(str.split(","));
function fn01(a,b){
console.log(a+b);
}
console.log(fn01);
var fn02 =function(a,b){
console.log(a+b);
}
var fn03 = new Function("a","b","return (a+b)");
function fn04(a,b){
return (a+b);
}
</script>
</body>
</html>
边栏推荐
- 49 pictures and 26 questions explain in detail what is WiFi?
- 2022-2028 global and Chinese FPGA prototype system Market Research Report
- 2020-10-27
- Rip notes [rip message security authentication, increase of rip interface measurement]
- Reading and visualization of DICOM, MHD and raw files in medical imaging
- [Chongqing Guangdong education] National Open University 2047t commercial bank operation and management reference test in autumn 2018
- [ideas] 2021 may day mathematical modeling competition / May Day mathematical modeling ideas + references + codes
- 【acwing】837. Number of connected block points
- How should programmers learn mathematics
- [PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
猜你喜欢
AutoCAD - scaling
The principle of attention mechanism and its application in seq2seq (bahadanau attention)
Minor spanning tree
[crampon game] MC tutorial - first day of survival
【Leetcode】1352. 最后 K 个数的乘积
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
JVM 原理和流程简介
【Leetcode】1352. Product of the last K numbers
【acwing】836. Merge sets
Wenet: E2E speech recognition tool for industrial implementation
随机推荐
Special information | real estate and office buildings - 22.1.9
54. Spiral matrix & 59 Spiral matrix II ●●
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
Invalid bound statement (not found) in idea -- problem solving
History of web page requests
【acwing】836. Merge sets
2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
Special information | finance, accounting, audit - 22.1.23
2022-2028 global and Chinese equipment as a Service Market Research Report
Emlog博客主题模板源码简约好看响应式
PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low
Number theoretic function and its summation to be updated
AutoCAD - full screen display
质量体系建设之路的分分合合
猿人学第一题
How should programmers learn mathematics
Rk3399 platform development series explanation (network debugging) 7.29 summary of network performance tools
Scope of package class package
Thinking of 2022 American College Students' mathematical modeling competition
CSDN body auto generate directory