当前位置:网站首页>趣味 面试题
趣味 面试题
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
边栏推荐
- PyTorch nn. Full analysis of RNN parameters
- Introduction to CPU instruction set
- Lombok common annotations
- The most understandable f-string tutorial in history, collecting this one is enough
- High performance erasure code coding
- Tas (file d'attente prioritaire)
- drools执行完某个规则后终止别的规则执行
- 怎样写一篇赏心悦目的英文数学论文
- Take you ten days to easily finish the finale of go micro services (distributed transactions)
- 使用Sqoop把ADS层数据导出到MySQL
猜你喜欢

甜心教主:王心凌

MySQL indexes and transactions

Programmers can't find jobs after the age of 35? After reading this article, you may be able to find the answer

High performance erasure code coding

This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry

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

Sort---

The blink code based on Arduino and esp8266 runs successfully (including error analysis)

Drools dynamically add, modify, and delete rules

中国交通标志检测数据集
随机推荐
MySQL and PostgreSQL methods to grab slow SQL
post请求体内容无法重复获取
Record the range of data that MySQL update will lock
LeetCode—剑指 Offer 51. 数组中的逆序对
还不会安装WSL 2?看这一篇文章就够了
Leetcode209 长度最小的子数组
(C language) octal conversion decimal
计算二叉树的最大路径和
Those logs in MySQL
Find the factorial of a positive integer within 16, that is, the class of n (0= < n < =16). Enter 1111 to exit.
子线程获取Request
字符串回文hash 模板题 O(1)判字符串是否回文
China traffic sign detection data set
Input a three digit number and output its single digit, ten digit and hundred digit.
Drools dynamically add, modify, and delete rules
(C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
How to write a pleasing English mathematical paper
测试左移和右移
Sub thread get request
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)