__What is JavaScript, really ?__

__What is JavaScript, really ?__

JavaScript (“JS” for short) is a full-fledged dynamic programming language that, when applied to an HTML document, can provide dynamic interactivity on websites. It was invented by Brendan Eich, co-founder of the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation.

JavaScript is incredibly versatile. You can start small, with carousels, image galleries, fluctuating layouts, and responses to button clicks. With more experience, you’ll be able to create games, animated 2D and 3D graphics, comprehensive database-driven apps, and much more!

*For online documentation on JavaScript , refer the doc of creators – mdn

**For the best class-room training on JavaScript at Mumbai connect with Rocky Sir

*Leaving out* the very simple and basic Interview Questions, at what questions

**do the fresh web developers get stuck ?**Here is a list :

**1. Before-the-first-Round-of-JavaScript-Interview-Questions**

** **** download a short and sweet **__PDF__

**2. **10-common-JavaScript-interview-questions *(Click on the Question for viewing the answer)*

**3. **Step-by-step solution for step counting using recursion

For example, if you wanted to climb 4 steps, you can take the following distinct number of steps:

*.*

**We want to write a function, using recursion, that will produce the answer for any number of steps**### 4. Determine overlapping numbers in ranges

**5. Find all duplicates in an array**

This is a common interview question where you need to write a program to find all duplicates in an array. The elements in the array have no restrictions, but in this algorithm we’ll work specifically with integers. Finding duplicates in an array can be solved in linear time by using a hash table to store each element as we pass through the array. The general algorithm is:

__6__. Two sum problem

__6__. Two sum problem

The two sum problem is a common interview question, and it is a variation of the subset sum problem. There is a popular dynamic programming solution for the subset sum problem, but for the two sum problem we can actually write an algorithm that runs in O(*n*) time.

__7. Stock maximum profit__

You will be given a list of stock prices for a given day and your goal is to return the maximum profit that could have been made by buying a stock at the given price and then selling the stock later on. For example if the input is: [45, 24, 35, 31, 40, 38, 11] then your program should return 16 because if you bought the stock at $24 and sold it at $40, a profit of $16 was made and this is the largest profit that could be made. If no profit could have been made, return -1.

for-complete-solution-to-Stock-maximum-profit