A demo for RWD
Answering the Front-end developer JavaScript interview questions to the best of my ability.
- Explain event delegation
Sometimes you need to delegate events to things.
- Explain how
this
works in JavaScript
This references the object or "thing" defined elsewhere. It's like "hey, thing I defined elsewhere, I'm talkin' to you."
- Explain how prototypal inheritance works.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk |