General interview questions for a front-end JS developer.
-
What is the spec Javascript implements and what versions of it are you most current with?
-
Does JavaScript support the use of classes?
{"lastUpload":"2020-06-03T20:49:48.150Z","extensionVersion":"v3.4.3"} |
{"lastUpload":"2020-06-03T17:56:23.661Z","extensionVersion":"v3.4.3"} |
################################# | |
# Functions # | |
################################# | |
function aws { | |
/usr/local/bin/aws "$@" | ppj | |
} | |
function ppj { | |
pygmentize -f terminal256 -l json -O style=monokai |
/** | |
* Decorates the model with a new method that has access to original methods | |
* @param model | |
* @param name | |
* @param method | |
*/ | |
function decorateModel (model, name, method) { | |
var originalMethod = model[name], | |
decorator = function () { | |
var returnVal; |
var _ = require('underscore'); | |
var EmberWrapper = Intaglio.wrappers.abstract.extend({ | |
init: function (object) { | |
this._object = object; | |
}, | |
unknownProperty: function (key) { | |
return this._object.get(key); | |
}, |
var _ = require('underscore'); | |
Kumo.AppsAppController = Ember.ObjectController.extend({ | |
branches: null, | |
_refreshContainer: null, | |
_active: false, | |
init: function () { | |
var self = this; |
Kumo.AppsNewController = Ember.ObjectController.extend(Ember.PromiseProxyMixin, { | |
projects: null, | |
selectedProject: null, | |
repositories: null, | |
repositoriesGetter: function () { | |
var self = this; | |
return ORM.factory('repository').where('projectId').isEqual(this.get('selectedProject.id')).findAll().then(function (data) { | |
self.set('repositories', data); |
var Kumo = require('./../../kumo'); | |
Kumo.AppsNewRoute = Ember.Route.extend({ | |
model: function () { | |
var self = this; | |
return Em.RSVP.hash({ | |
projects: ORM.factory('project').orderBy('name').findAll(), | |
application: ORM.factory('application').create() | |
}); | |
}, |