当前位置:网站首页>趣味 面试题
趣味 面试题
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
边栏推荐
- Test shift left and right
- (C language) input a line of characters and count the number of English letters, spaces, numbers and other characters.
- Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
- Leetcode739 daily temperature
- Simple use of drools decision table
- Differences between nodes and sharding in ES cluster
- [old horse of industrial control] detailed explanation of Siemens PLC TCP protocol
- Multiply LCA (nearest common ancestor)
- 刷题---二叉树--2
- Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
猜你喜欢

Docker-compose配置Mysql,Redis,MongoDB

记录一下MySql update会锁定哪些范围的数据

测试左移和右移

Jenkins user rights management

PyTorch nn. Full analysis of RNN parameters

Sweetheart leader: Wang Xinling

堆(優先級隊列)

The programmer and the female nurse went on a blind date and spent 360. He packed leftovers and was stunned when he received wechat at night

China traffic sign detection data set

Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
随机推荐
堆(優先級隊列)
JZ63 股票的最大利润
mysql表的增删改查(进阶)
CDA data analysis -- Introduction and use of aarrr growth model
字符串回文hash 模板题 O(1)判字符串是否回文
Sweetheart leader: Wang Xinling
Mysql database foundation
CV2 in OpenCV VideoWriter_ Fourcc() function and cv2 Combined use of videowriter() function
PyTorch nn. Full analysis of RNN parameters
Leetcode - Sword finger offer 37, 38
Post request body content cannot be retrieved repeatedly
There is a hidden danger in CDH: the exchange memory used by the process of this role is XX megabytes. Warning threshold: 200 bytes
AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning
Docker-compose配置Mysql,Redis,MongoDB
The programmer and the female nurse went on a blind date and spent 360. He packed leftovers and was stunned when he received wechat at night
深拷贝 事件总线
Embedded Software Engineer career planning
This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry
[C language] convert decimal numbers to binary numbers
Leetcode14 最长公共前缀