当前位置:网站首页>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>
边栏推荐
- 2022-2028 global and Chinese video coding and transcoding Market Research Report
- 2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
- Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
- MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP
- Séparation et combinaison de la construction du système qualité
- #775 Div.1 C. Tyler and Strings 组合数学
- AutoCAD -- dimension break
- A survey of automatic speech recognition (ASR) research
- xss注入
- Flink集群配置
猜你喜欢

AutoCAD - Document Management

Use assimp library to read MTL file data

质量体系建设之路的分分合合

Detailed introduction of OSPF header message

Is $20billion a little less? Cisco is interested in Splunk?
![[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens](/img/20/5c5550e6dabc76702f0e7ce3bef068.jpg)
[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens

AutoCAD - graphic input and output

AutoCAD - window zoom

669. Prune binary search tree ●●

Redis 排查大 key 的4种方法,优化必备
随机推荐
Manually implement heap sorting -838 Heap sort
2022 U.S. college students' mathematical modeling e problem ideas / 2022 U.S. game e problem analysis
[crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
Use assimp library to read MTL file data
Raki's notes on reading paper: code and named entity recognition in stackoverflow
中国艾草行业研究与投资前景预测报告(2022版)
Neural networks and deep learning Chapter 6: Circular neural networks reading questions
Special information | finance, accounting, audit - 22.1.23
AutoCAD - workspace settings
[groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)
Rk3399 platform development series explanation (network debugging) 7.29 summary of network performance tools
How much do you know about 3DMAX rendering skills and HDRI light sources? Dry goods sharing
Error statuslogger log4j2 could not find a logging implementation
[groovy] closure (closure parameter list rule | default parameter list | do not receive parameters | receive custom parameters)
中国聚氨酯硬泡市场调研与投资预测报告(2022版)
[groovy] closure (closure call is associated with call method | call () method is defined in interface | call () method is defined in class | code example)
#775 Div.1 C. Tyler and Strings 组合数学
Setting up redis cluster cluster under Windows
#775 Div.1 B. Integral Array 数学
AutoCAD - command repetition, undo and redo