Category Archives: frontEnd

JavaScript developer interview questions.

I searched for a job not far ago and visited a lot of interviews. Here I would like to post some of questions, which I find interesting. 1) explain the difference: apply, call and bind 2) rules and order of determination of this (context) 3) count some of the two arrays with Array.reduce. For ex.: […]

$ctrl, this, $scope, assigning variable to view

I wrote this article basically for myself. Maybe it will be useful for someone. Angular allows to access variables via: $ctrl, controllerAs, this, $scope, simple variable name $ctrl – is default name for controller in view. So you can use it to access variables inside templates: function SearchInputController($scope, $log){ var ctrl = this; $scope.$log = […]

background-attachment CSS property

Recently I came into and issue. I checked background size on Chrome devtools and it looked okay: But then when I looked on the iPhone gadget: background looked horribly, it was zoomed: After a small search I found explanation (http://caniuse.com/ – feat=background-attachment) . By the fact that mobile browser does not support background-attachment: fixed property. So Chrome devtools(51.0.2704.106 […]