si, le variabili non vanno racchiuse tra apici:
var arr = [[D18],[D6],[D7]];