Computer Network By Geeksforgeeks Javascript Variable Scope