当前位置:网站首页>Null and undefined
Null and undefined
2022-07-03 03:35:00 【Starry field meow inside】
undefined
1. Statement , Assign to
let o;
console.log(o); // undefined
2. A property of the object does not exist
let obj = {}
console.log(obj.a); // undefined
3. Missing parameters
function fn(a, b) {
console.log(a, b); // 4 undefined
}
fn(4);
4. Method
function abcd() {
console.log("111")
}
console.log(abcd()); // undefined
null
1. Manual memory release
2. As an argument to a function ( This parameter is not an object )
3. Top of prototype chain
let obj = {};
obj1 = null;
边栏推荐
- Pytorch multi card distributed training distributeddataparallel usage
- FileZilla client download and installation
- float与0比较
- 900W+ 数据,从 17s 到 300ms,如何操作
- ffmpeg之 一张/多张图片合成视频
- [mathematical logic] predicate logic (individual word | individual domain | predicate | full name quantifier | existence quantifier | predicate formula | exercise)
- 解决高并发下System.currentTimeMillis卡顿
- com.fasterxml.jackson.databind.exc.InvalidFormatException问题
- UMI route interception (simple and rough)
- QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序
猜你喜欢
渤、黄海的潮汐特征
TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥
Why does thread crash not cause JVM crash
VS 2019 配置tensorRT生成engine
FileZilla Client下载安装
FileZilla Client下載安裝
Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf
Leetcode: dynamic planning template
node,npm以及yarn下载安装
Small guide for rapid formation of manipulator (VIII): kinematic modeling (standard DH method)
随机推荐
Solve high and send system Currenttimemillis Caton
[mathematical logic] propositional logic (propositional logic reasoning | formal structure of reasoning | inference law | additional law | simplification law | hypothetical reasoning | refusal | disju
Summary of determinant knowledge points in Chapter 1 of Linear Algebra (Jeff's self perception)
Mongodb installation & Deployment
shardingsphere动态数据源
Limit of one question per day
小程序获取用户头像和昵称
Compare float with 0
[mathematical logic] normal form (conjunctive normal form | disjunctive normal form | major item | minor item | maximal item | minor item | principal conjunctive normal form | principal disjunctive no
释放数据力量的Ceph-尚文网络xUP楠哥
FileZilla client download and installation
递归:一维链表和数组
二进制流转换成字节数组
[combinatorics] basic counting principle (addition principle | multiplication principle)
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
node,npm以及yarn下载安装
简易版 微信小程序开发之for指令、上传图片及展示效果优化
Vs 2019 configuration tensorrt
递归:深度优先搜索
【全民编程】《软件编程-讲课视频》【零基础入门到实战应用】