Question: I want to devise a way to prevent piracy of my app or at least make it more difficult. The app will be installed in a standalone PC and I want to make it difficult for a person to simply copy the installation, or clone the hard drive, and simply deploy it on a second PC.
Is using the MAC address the best way? What about using WMI to get a mother board ID?

Answer: 
It's an array. `Array#toString` produces the comma-separated output.

Try this:

```
[3, 4, 'b'].toString(); 

```

If you use `console.log` instead of `document.write` to inspect `nameArray`, you'll see that it is an array.
thats the way how JAVASCRIPT shoes an array

it **did** convert it

**but** you told JS to display it

so thats what he does.

proof:

```
nameArray[0]====>milk

nameArray[1]====>sugar

```