当前位置:网站首页>趣味 面试题
趣味 面试题
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
边栏推荐
- Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
- Brush questions --- binary tree --2
- Input a three digit number and output its single digit, ten digit and hundred digit.
- Take you ten days to easily finish the finale of go micro services (distributed transactions)
- JZ63 股票的最大利润
- drools执行指定的规则
- Drools dynamically add, modify, and delete rules
- Leetcode209 subarray with the smallest length
- MySQL and PostgreSQL methods to grab slow SQL
- The blink code based on Arduino and esp8266 runs successfully (including error analysis)
猜你喜欢

drools中then部分的写法

Tas (file d'attente prioritaire)

Differences between nodes and sharding in ES cluster

Test shift left and right

Experiment of connecting mobile phone hotspot based on Arduino and esp8266 (successful)

Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)

Use sqoop to export ads layer data to MySQL

Performance tuning project case

kubenetes中port、targetPort、nodePort、containerPort的区别与联系

Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
随机推荐
初始JDBC 编程
Performance tuning project case
WSL 2 will not be installed yet? It's enough to read this article
mysql索引和事务
Sparkcontext: error initializing sparkcontext solution
分布式机器学习框架与高维实时推荐系统
Codeforces 771 div2 B (no one FST, refers to himself)
字符串回文hash 模板题 O(1)判字符串是否回文
Leetcode739 daily temperature
甜心教主:王心凌
Input a three digit number and output its single digit, ten digit and hundred digit.
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
测试左移和右移
Drools terminates the execution of other rules after executing one rule
Day12 control flow if switch while do While guessing numbers game
How to write a pleasing English mathematical paper
[old horse of industrial control] detailed explanation of Siemens PLC TCP protocol
Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
Addition, deletion, modification and query of MySQL table (Advanced)
drools中then部分的写法