var a5 = "Значение переменной a5"; var first = "a"; var second = "5"; alert ( window[ first + second ]);