当前位置:网站首页>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>
边栏推荐
- #775 Div.1 B. Integral Array 数学
- Inline built-in function
- Debug insights
- windows下Redis-cluster集群搭建
- 2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem
- 質量體系建設之路的分分合合
- How much do you know about 3DMAX rendering skills and HDRI light sources? Dry goods sharing
- Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 006 unity toolbar
- Flink cluster configuration
- Download the details and sequence of the original data access from the ENA database in EBI
猜你喜欢

How should programmers learn mathematics
![[groovy] closure (closure call | closure default parameter it | code example)](/img/61/754cee9a940fd4ecd446b38c2f413d.jpg)
[groovy] closure (closure call | closure default parameter it | code example)

数论函数及其求和 待更新

Manually implement heap sorting -838 Heap sort

Reading and visualization of DICOM, MHD and raw files in medical imaging

Introduction to JVM principle and process

【Leetcode】1352. 最后 K 个数的乘积

"Measuring curve length" of CAD dream drawing

MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP

Number theoretic function and its summation to be updated
随机推荐
CSDN body auto generate directory
Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
#775 Div.1 C. Tyler and Strings 组合数学
AutoCAD - graphic input and output
2022 thinking of mathematical modeling a problem of American college students / analysis of 2022 American competition a problem
Wenet: E2E speech recognition tool for industrial implementation
[crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
Manually implement heap sorting -838 Heap sort
MD5绕过
中国AS树脂市场调研与投资预测报告(2022版)
【acwing】837. Number of connected block points
Inline built-in function
Number theoretic function and its summation to be updated
中国金刚烷行业研究与投资预测报告(2022版)
Neural networks and deep learning Chapter 5: convolutional neural networks reading questions
Setting up redis cluster cluster under Windows
Autocad-- Real Time zoom
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
Advanced length of redis -- deletion strategy, master-slave replication, sentinel mode
中国艾草行业研究与投资前景预测报告(2022版)