I am using this simple JavaScript to retrieve a row form a data extension in a landing page and then displaying on page(just for testing).
<div id="data"></div>
<script>
var birthdayDE = DataExtension.Init("abandon_cart24hr");
var filter = {Property:"EmailAddress",SimpleOperator:"equals",Value:"[email protected]"};
var data = birthdayDE.Rows.Retrieve(filter);
document.getElementById("data").innerHTML= data;
</script>
Somehow it doesn't seems to give me any output. I am sure if this code works in Landing page or not.