From 927f1ca0a45a8bf58a14c73ec416869672b14e95 Mon Sep 17 00:00:00 2001 From: Darcy Clarke Date: Mon, 24 Nov 2014 16:49:46 -0500 Subject: [PATCH] Update coding questions and add fizzbuzz --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b888a25..a88db50 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#Front-end Job Interview Questions +#Front-end Job Interview Questions This repo contains a number of front-end interview questions that can be used when vetting potential candidates. It is by no means recommended to use every single question here on the same candidate (that would take hours). Choosing a few items from this list should help you vet the intended skills you require. @@ -148,6 +148,7 @@ The majority of the questions were plucked from an [oksoclap](http://oksoclap.co ``` * Why is it called a Ternary expression, what does the word "Ternary" indicate? * What is `"use strict";`? what are the advantages and disadvantages to using it? +* Create a for loop that iterates up to `100` while outputting **"fizz"** at multiples of `3`, `"buzz"` at multiples of `5` and **"fizzbuzz"** at multiples of `3` and `5` ####[[⬆]](#toc) jQuery Questions: @@ -161,12 +162,12 @@ The majority of the questions were plucked from an [oksoclap](http://oksoclap.co ####[[⬆]](#toc) Code Questions: -*Question: Implement a modulo function that satisfies the following* +*Question: How would you make this work?* ```javascript -modulo(12, 5) // 2 +add(2, 5); // 7 +add(2)(5); // 7 ``` - *Question: What value is returned from the following statement?* ```javascript "i'm a lasagna hog".split("").reverse().join(""); @@ -183,7 +184,12 @@ modulo(12, 5) // 2 *Question: What is the outcome of the two alerts below?* ```javascript -var foo = "Hello"; (function() { var bar = " World"; alert(foo + bar); })(); alert(foo + bar); +var foo = "Hello"; +(function() { + var bar = " World"; + alert(foo + bar); +})(); +alert(foo + bar); ``` **Answer: "Hello World" & ReferenceError: bar is not defined**