git push origin --delete <your_branch>
git checkout --theirs package-lock.json
// getData function is pretending that it is fetching data and after 2 second it received data. | |
// $ is jQuery | |
function getData() { | |
//creating on dererred object | |
var deferred = $.Deferred(); | |
// after 2 second resolve promise with data. | |
setTimeout(function() { | |
deferred.resolve([1,2,3]); | |
}, 2000); |
log(); | |
var log = function(msg) { | |
alert(msg); | |
} | |
/* | |
* in this case log function is a expression type and log varibale will be hoisted at the top | |
* and initialized with undefined therefore, we will get | |
* Uncaught TypeError: log is not a function | |
*/ |
FullStack developer environment
Note: Run all software as administrator.
npm -v
& node -v
to confirm installation.What are RxJS subjects and the benefits of using them. How to understand RxJS subjects such that you can apply it in your day to day coding at your own project. Well lets get started.
There are 4 types of RxJS Subjects:
a4b.amazonaws.com | |
access-analyzer.amazonaws.com | |
account.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
airflow-env.amazonaws.com | |
airflow.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com |
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
/dev/xvdf