Some error occured while loading page for you. Please try again.
You are viewing a single comment's thread. Return to all comments →
//Global variable index has been declared and initialized //Edit the code below. console.log("The global index (before for-loop) is : ", index);
for(let index = 0; index < N; index++){ console.log("The local index is : ",index); }
console.log("The global index (after for-loop) is : ",index);
Add Reply Preview cancel
Create An Account
Or connect with
By signing up you agree to our Terms of Service and Privacy Policy
//Global variable index has been declared and initialized //Edit the code below. console.log("The global index (before for-loop) is : ", index);
for(let index = 0; index < N; index++){ console.log("The local index is : ",index); }
console.log("The global index (after for-loop) is : ",index);
Add Reply Preview cancel