当前位置:网站首页>趣味 面试题
趣味 面试题
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
边栏推荐
- jenkins 凭证管理
- Test shift left and right
- [C language] convert decimal numbers to binary numbers
- Fastdateformat why thread safe
- 堆(优先级队列)
- SparkContext: Error initializing SparkContext解决方法
- 基于Arduino和ESP8266的Blink代码运行成功(包含错误分析)
- kubenetes中port、targetPort、nodePort、containerPort的区别与联系
- arcgis js 4.x 地图中加入图片
- CDA数据分析——Excel数据处理的常见知识点归纳
猜你喜欢

mysql表的增删改查(进阶)

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

PyTorch nn. Full analysis of RNN parameters

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

CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节

drools中then部分的写法

【工控老马】西门子PLC Siemens PLC TCP协议详解

防抖 节流

Writing method of then part in drools

CONDA common command summary
随机推荐
Day12 control flow if switch while do While guessing numbers game
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
二分刷题记录(洛谷题单)区间的甄别
CDA data analysis -- Introduction and use of aarrr growth model
CDH6之Sqoop添加数据库驱动
Map and set
Maximum profit of jz63 shares
Leetcode122 the best time to buy and sell stocks II
High performance erasure code coding
MySQL and PostgreSQL methods to grab slow SQL
还不会安装WSL 2?看这一篇文章就够了
H5 to app
Performance tuning project case
Gaode map test case
Adding database driver to sqoop of cdh6
Go学习笔记—基于Go的进程间通信
CDA数据分析——AARRR增长模型的介绍、使用
Full link voltage measurement
(C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry