interview's People
interview's Issues
export * from a;
【Q2】typescript 中的 infer简单用法
Param 类型是什么
type ParamType<T> = T extends (...args: infer P) => any ? P : T;
interface User {
name: string;
age: number;
}
type Func = (user: User) => void;
type Param = ParamType<Func>;
【A】 void
【B】 Func
【C】 T
【D】 User
【Q1】export default语法糖
export default a;等效于哪种写法?
【A】 export {a as default};
【B】 export const a;
【C】 export {a};
【D】 epxort * from a;
【Q5】typescript 中 interface 与 type 有何区别
下列哪个写法正确
【A】 type SetPoint {
(x: number, y: number): void;
}
【B】 interface SetPoint {
(x: number, y: number): void;
}
【C】 interface PartialPointX { x: number; }
interface Point extends PartialPointX { y: number; }
【D】 type PartialPointX = { x: number; };
type Point = PartialPointX & { y: number; };
【Q3】JS的原始数据类型
下列哪项不是JS的原始数据类型
【A】 BigInt
【B】 Symbol
【C】 Array
【D】 undefined
【Q4】npm install流程问题
当packjson和lock文件的声明版本不一致时,npm5.0.x版本是按照下列哪项进行下载依赖
【A】 根据package-lock.json下载
【B】 当package.json声明的依赖版本规范与package-lock.json安装版本兼容,按照package-lock.json下载
【C】 当package.json声明的依赖版本规范有符合的更新版本时,忽略package-lock.json,按照package.json下载
【D】 当package.json声明的依赖版本规范与package-lock.json安装版本不兼容,按照package.json下载
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.