当前位置:网站首页>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); // undefined2. A property of the object does not exist
let obj = {}
console.log(obj.a); // undefined3. Missing parameters
function fn(a, b) {
console.log(a, b); // 4 undefined
}
fn(4);4. Method
function abcd() {
console.log("111")
}
console.log(abcd()); // undefinednull
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;边栏推荐
- Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
- QT based tensorrt accelerated yolov5
- npm : 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
- 编译文件时报错:错误: 编码GBK的不可映射字符
- Introduction à mongodb
- 【学习笔记】seckill-秒杀项目--(11)项目总结
- Recursion: quick sort, merge sort and heap sort
- 静态网页 和 动态网页的区别 & WEB1.0和WEB2.0的区别 & GET 和 POST 的区别
- redis在服务器linux下的启动的相关命令(安装和配置)
- Pytorch轻量级可视化工具wandb(local)
猜你喜欢
随机推荐
Pat class B common function Usage Summary
[embedded module] OLED display module
leetcode:动态规划模板
Web会话管理安全问题
小程序获取用户头像和昵称
Open Visual Studio 2010 hangs when opening a SQL file sql file
C # webrequest post mode, based on "basic auth" password authentication mode, uploads files and submits other data using multipart / form data mode
【全民编程】《软件编程-讲课视频》【零基础入门到实战应用】
Convert binary stream to byte array
File rename
释放数据力量的Ceph-尚文网络xUP楠哥
numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
Using jasmine to monitor constructors - spying on a constructor using Jasmine
Application of derivative in daily question
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
Download and install node, NPM and yarn
Limit of one question per day
Hi3536C V100R001C02SPC040 交叉编译器安装
Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
Node start server









