A.  Code 1

B.  Code 2

C.  Both Code 1 and Code 2

D.  Cannot Compare

1
Correct Answer :
Code 1
Explanation :

A for loop is always more efficient because it encapsules two individual statements(initialization and expression) within the braces.


Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python