Skip to main content

Posts

Showing posts with the label JavaScript Quiz code programming languages

Angular 2 Modules vs. JavaScript Modules vs. Angular 1 Modules

Angular 2 Modules - The Angular module — a class decorated with @NgModule — is a fundamental feature of Angular. JavaScript also has its own module system for managing collections of JavaScript objects. It's completely different and unrelated to the Angular module system. Angular Modules are the unit of reusability. Angular modules represent a core concept and play a fundamental role in structuring Angular applications. Every Angular app has at least one module, the root module, conventionally named AppModule. Important features such as lazy loading are done at the Angular Module level. Angular Modules logically group different Angular artifacts such as components, pipes, directives, and so on. Angular Modules help to organize an application into cohesive blocks of functionalities and extend it with capabilities from external libraries. App module looks like below, import { NgModule } from '@angular/core' ; import { RouterModu...

AngularJs Tutorials with examples for Beginners and Experts

AngularJs Introduction What is AngularJs? Why AngularJs? How to use AngularJs? AngularJs setup and Installation View on GitHub Downloading and hosting files locally AngularJs Syntax (1st Apps) Important parts of AngularJs * ng-app * ng-model * ng-bind Creating AngularJs Application Executing AngularJs Application AngularJs Expressions Number, String, Object and Array Expressions AngularJs Routes Introduction Declaring a Dependency on Route Module The ng-View Directive Configuring the $routeProvider Links to Angular Routes Angular Route Parameters Examples AngularJs Directives What is an Angular Directive? What is an Interpolation directives and example? What is an ng-bind directives and example? What is an ng-view directives and example? What is an ng-template directives and example? What is Escaping? How Escaping HTML from the Model? What is an conditional rendering(ng if else) and example? What are ng-show and ng-hide directives and examples? ...

Quiz JavaScript Programming Languages

Questions of the day - JavaScript Programming Languages (function(){ return typeof arguments; })(); object array arguments undefined var f = function g(){ return 23; }; typeof  g(); number undefined function Error (function(x){ delete x; return x; })(1); 1 null undefined Error (function f(f){ return typeof f(); })(function(){ return 1; }); number undefined function Error var foo = { bar: function() { return this.baz; }, baz: 1 }; (function(){ retu undefined object number function var f = (function f(){ return "1"; }, function g(){ return 2; })(); typeof f; string number function undefined var x = 1; if (function f(){}) { x += typeof f; } x; 1function 1 1undefined NaN var x = [typeof x, typeof y][1]; typeof typeof x; string number object undefined (function(foo){ return typeof foo.bar; })({ foo: { bar: 1 } }); object ...