You need to scope the global variables to the window
object.
var Apt = "EDDB";
var Menu = "Gnd";
var EDDBGnd = "This is a test";
document.getElementById("debug").innerHTML =
window[window.Apt.concat(window.Menu)];
<div id="debug"></div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…