Skip to content

Instantly share code, notes, and snippets.

@judearasu
judearasu / dabblet.css
Last active August 29, 2015 14:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;

##JavaScript specific Questions

  • Which JavaScript libraries have you used?
  • How is JavaScript different from Java?
  • What are undefined and undeclared variables?
  • What is an expression?
  • What is a statement?
  • Give an example of a function declaration
  • Give an example of a function expression
  • Explain what the DOM is and some best practices for interacting with it.
@judearasu
judearasu / clone-object.js
Last active August 29, 2015 14:07
Javascript test
describe('clone object', function () {
it('should clone an object', function () {
var expected = {name: 'Ahmed', age: 27, skills: ['cycling', 'walking', 'eating']},
obj = {};
if (expected instanceof Object){
obj = expected.constructor();
for (var attr in expected) {
if (expected.hasOwnProperty(attr))
obj[attr] = expected[attr];
}