how can i purposely leave a variable blank

Subscribe to how can i purposely leave a variable blank 4 posts, 4 voices

 
scriptnoob User

hi,

i'm using a script that has a variable like this:

var names = /name1|name2/ig;

what i would like to do is remove name1 and name2 and just have
var names = nothing

if i put
var names = ;
the script stops working

how can i have the variable be nothing and still have the script function?

thanks

 
JoeSimmons Scriptwright

Just simply put var names;

 
Aquilax Scriptwright

var names=null;

 
w35l3y Scriptwright

just to remind... there are some differences between undefined and null variables