Monday 30 October 2017

JavaScript Job Interview Questions & Answers



 JavaScript  Exercises for Programming Job 


The start of 2017 has seen immense growth in demand for developers, as front end developers, full stack developers, mobile developers, and back end developers are all currently in the top 10 hardest to fill tech jobs, according to data from job search site Indeed.com. The following are among the most in-demand positions in software companies this year

  • JavaScript Developers
  • Web Developers (PHP with Laravel or Symfony, Ruby on Rails, Python Django )
  • Mobile app developers
  • Information security software developers
  • Internet of Things (IoT) developers
  • Cloud developers
  • Full stack developers
  • Machine learning developers
  • DevOps engineers
  • UX/UI developers


JavaScript is perhaps the hottest skill programmers need to know in 2017 and 2018. Currently, the hottest programming jobs are anything that has to do with any of the JavaScript frameworks:  AngularJS, React.JS, Vue.JS and on the server side, Node.JS. Thus, companies are developing with all of these and it is turning out to be very difficult finding programmers to fill these roles. According to TechRepublic, With more companies exploring and developing products to support the possibilities unlocked by the latest hi-techs—virtual/augmented reality, machine learning, artificial intelligence, and autonomous vehicles—there will be a corresponding demand for developers that can write software to support them.

In this post, I will explore with you some key technicalities you need to polish up your JavaScript skills to brace up for these job interviews. You would find the source codes here

 JavaScript  Job Interview Questions  1

You have an array of objects in JavaScript. Each one contains a name (a string) and ranking (a number). Write two functions, one to return the objects ordered by ranking and another to return the average ranking.

// A function to return average ranking











 JavaScript  Job Interview Questions 2



Write a function: function solution($A); that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5.
Given A = [1, 2, 3], the function should return 4.
Given A = [−1, −3], the function should return 1.
Assume that:
  • N is an integer within the range [1..100,000];
  • each element of array A is an integer within the range [−1,000,000..1,000,000].
Complexity:
  • expected worst-case time complexity is O(N);
  • expected worst-case space complexity is O(N), beyond input storage (not counting the storage required for input arguments).
Elements of input arrays can be modified.








No comments:

Post a Comment