当前位置:网站首页>趣味 面试题
趣味 面试题
2022-07-02 09:43:00 【大海里没有水】

var x = 1;
// 如果函数参数有默认值,参数本身会形成一个作用域,这个作用域用于保存参数的值
function foo(
x,
y = function () {
x = 3;
console.log(x);
}
) {
console.log(x);
var x = 2;
y();
console.log(x);
}
foo();
console.log(x);
// undefined
// 3
// 2
// 1
边栏推荐
- 上传文件时,服务器报错:IOFileUploadException: Processing of multipart/form-data request failed. 设备上没有空间
- 初始JDBC 编程
- There is a hidden danger in CDH: the exchange memory used by the process of this role is XX megabytes. Warning threshold: 200 bytes
- CDH6之Sqoop添加数据库驱动
- LeetCode—剑指 Offer 51. 数组中的逆序对
- China traffic sign detection data set
- Multiply LCA (nearest common ancestor)
- Go学习笔记—基于Go的进程间通信
- 寻找二叉树中任意两个数的公共祖先
- kubeadm join时出现错误:[ERROR Port-10250]: Port 10250 is in use [ERROR FileAvailable--etc-kubernetes-pki
猜你喜欢

jenkins 凭证管理

Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement

CONDA common command summary

Heap (priority queue)

Simple use of drools decision table

Performance tuning project case

From scratch, develop a web office suite (3): mouse events

深拷贝 事件总线

Differences between nodes and sharding in ES cluster

ThreadLocal的简单理解
随机推荐
记录一下MySql update会锁定哪些范围的数据
高德地图测试用例
drools中then部分的写法
Leetcode - Sword finger offer 51 Reverse pairs in an array
[C language] Yang Hui triangle, customize the number of lines of the triangle
Simple understanding of ThreadLocal
Adding database driver to sqoop of cdh6
CDA data analysis -- Introduction and use of aarrr growth model
基于Arduino和ESP8266的连接手机热点实验(成功)
5g era, learning audio and video development, a super hot audio and video advanced development and learning classic
Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately
mysql索引和事务
mysql表的增删改查(进阶)
Addition, deletion, modification and query of MySQL table (Advanced)
Leetcode122 the best time to buy and sell stocks II
Intel internal instructions - AVX and avx2 learning notes
高性能纠删码编码
Initial JDBC programming
Lombok common annotations
(C语言)八进制转换十进制