目錄表

前端面試官指南

目標

面談類別

Personality

Web

HTML

CSS

JavaScript

snippet.javascript
const func = async (url) => () => {
  const result = await fetch(url).then(r => r.json())
  console.log(result)
  return result
}
 
func()('SOME_JSON_URL') // what happen?
snippet.javascript
var a = { n : 1 };
var b = a;
a.x = a = { n : 2 };
console.log(a.x)
console.log(b.x)

React.js

TypeScript

Algorithm

input: '[1,2,3,[51,2,32,[],[2],1],5]'
output: [1,2,3,[51,2,32,[],[2],1],5]