subject
Engineering, 27.03.2020 00:26 bumeh511

First, declare a variable named myArray and assign it to an empty array. Now populate myArray with two strings: Put your full name in the first string, and your favorite color in the second. Next, declare a function named cutName. It should expect a parameter name. cutName should return an array by breaking up the input string into individual words. Example: cutName("Douglas Crockford") should return ["Douglas", "Crockford"] Example: cutName("John B. Smith") should return ["John", "B.", "Smith"] Declare a new variable named myInfo and assign it to an empty object literal. Add the following three key-value pairs to myInfo: Key: fullName Value: The result of calling cutName on the name string within myArray. Key: favoriteColor Value: The color within myArray. Key: github Value:If you have a github handle, enter it here as a string. If not, set this to null instead.

ansver
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, kayabwaller4589
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
image
Engineering, 04.07.2019 18:10, 19deleonl
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
image
Engineering, 04.07.2019 18:10, sarahgrindstaff123
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
image
Engineering, 04.07.2019 18:20, 3076850
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i. e., a violation of one statement leads to the violatio the other statement)
Answers: 2
You know the right answer?
First, declare a variable named myArray and assign it to an empty array. Now populate myArray with t...

Questions in other subjects:

Konu
Mathematics, 20.05.2020 06:59
Konu
Mathematics, 20.05.2020 06:59