Question: 1. Answer the following a) Given let i = 5; for (let i = 0; i // some statements } // what is the value

1. Answer the following

a) Given

let i = 5; for (let i = 0; i // some statements } // what is the value of i here (after the loop)

b) Declare a variable abc, with block scope, and initialize it with the string value "abc"

c) A point in 2D space has a pair of values (x,y); a rectangular area can be described with four (4) vertices (points). Declare a constant called rectangle and initialize a two-dimensional array, using the array literal method, storing the vertices (2,3), (15,3), (2,10), and (15,10).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!