Which line of code should you use?

You have the following code:

You need to convert objStr into an array.
Which line of code should you use?

You have the following code:

You need to convert objStr into an array.
Which line of code should you use?

A.
var jsObject = Array.bind(objStr);

B.
var jsObject = Array.valueOf(objStr);

C.
var jsObject = JSON.parse(objStr);

D.
var jsObject = $.makeArray(objStr);

Explanation:
https://www.w3schools.com/js/js_json_parse.asp



Leave a Reply 1

Your email address will not be published. Required fields are marked *


CasiProgramoMEXAPOWA

CasiProgramoMEXAPOWA

It is right