Blog Archives

01: JavaScript Vs Java interview Q&As

The client-side JavaScript based MVW (Model View Whatever) frameworks like AngularJS, Backbone, CanJS, Ember, etc have become mainstream and replacing server side Java based frameworks like JSF, Struts, Spring MVC. So, time to get a better handle on JavaScript and market yourself as a full stack Java developer.

Read more ›

02: JavaScript mistakes interview Q&As

Q1. What are the common JavaScript errors or bad practices that you have noticed? A1. 1) Not having proper namespaces and not using AMD (i.e. Asynchronous Model Definition) API to modularize the Java code for improved maintainability. … Read more ›...

Q1 – Q10 JavaScript Q&As on scopes & context

You can try the code samples in this JavaScript interview questions and answers as follows:

1) In Goggle chrome or FireFox browser, you can bring up the developer tool with the “F12” on windows. You can also get to via the browser menu.

Read more ›

Q11 – Q20 JavaScript Q&As on “this”

This builds on Q1 – Q10 JavaScript Interview Q&A on variable scopes & context Q11. What are the different ways can you define a function on JavaScript? A11. 2 ways 1. Function Declaration 2. Function Expression By assigning an anonymous function to a variable, … Read more ›...

Q21 – Q30 JavaScript Q&As on self-invoking & argument

Q21. What will be the output of the following JavaScript code? A21. The “module” is an object defined within “{….}”. It has a property “x” and a function “getX”. It is important understand the magic variable “this”. Because in //2 case, … Read more ›...

Q31 – Q37 JavaScript Interview Q&A on Closure

Q31. What is a Closure in JavaScript? A31. A closure is an “inner function” that has access to the “outer function’s” variables—scope chain. The closure has three scope chains: 1) It has access to variables defined between its curly brackets. 2) It has access to the outer function’s variables. …...

800+ Java Q&As & tutorials