Comments (2)
Hi @misstonbon, from quick glance, it would seem that the function will be exited on the first attempt into the for loop, and the rest of the logic will not be initiated. Are you able to explain why you think a return is missing?
from interview-questions-in-javascript.
Hello,
I have indicated the missing return keyword above.
Thanks for providing good interview prep questions.
from interview-questions-in-javascript.
Related Issues (7)
- So much wrong HOT 1
- make js files for every example HOT 3
- 1.1 - why is greatest product either (min1 * min2 * max1 || max1 * max2 * max3) HOT 2
- Answer to question 1.4 doesn't handle a case of repeating number in array that is not currentMin HOT 2
- isPowerOfTwo is absolutely incorrect solution in JS
- Intersection of two Arrays
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interview-questions-in-javascript.