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. Q1. What…



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. 2) Not using the var to declare your variables. If you don’t use…

Tags:

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.

2) You can go to “http://jsfiddle.net/” on a browser. To get console.log(…) outputs, add “https://getfirebug.com/firebug-lite-debug.js” to the “External Resources” on the LHS menu if using FireFox.

Q1. Can you list which variables are accessible without any errors in locations marked //1, //2, //3, and //4 in the code …

Tags:

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, as a function in JavaScript…

Members Only Content


Login



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

Q21. What will be the output of the following JavaScript code?

A21. The …



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. 3)…



300+ Java & Big Data FAQs - Quick Prep

Java & Big Data Tutorials

Top