< Back

Pointers

This document gather usefull inforamtion about javascript and some fo its dark parts.

CSV to array

csv = "1,2,3,4,5,65,7";
arr = csv.split(",");

arr[2] = 55;
cvs = arr.join(",");

Exitting with an error message

if(error)
    throw("Error, error != 0");