Skip to content

Instantly share code, notes, and snippets.

View danielchou's full-sized avatar
🏠
Working from home

daniel.chou danielchou

🏠
Working from home
View GitHub Profile
@danielchou
danielchou / main
Created June 30, 2015 17:22
VueJS Test
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]">
<script src="http://vuejs.org/js/vue.js"></script>
<meta charset="utf-8">
<title>#1 Basic</title>
</head>
<body>
@danielchou
danielchou / Front-end-Developer-Interview-Questions-TC.md
Created November 23, 2015 08:48 — forked from hanksudo/Front-end-Developer-Interview-Questions-TC.md
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@danielchou
danielchou / showFirstLightAsTrue.js
Last active January 18, 2024 14:36
只有第一個元素的 light 為 true 且其他元素的 light 都為 false 時為 true,否則為 false
const lights = [{ light: true }, { light: false }, { light: false }, { light: false }];
const isAllLightsOn = lights[0].light && lights.slice(1).every(item => !item.light);
console.log(isAllLightsOn);