How to store the result fql global variable?

Hello everyone,
How do I store the result fql global variable? follows does not seem to work.

Var result;

Var query = full Board.Data query (' select ... name, uid use uid = {0} ',
727943420);
Query. wait (function (rows) {
Document. getElementById (' name '). innerHTML =
Your name is ' + uid;

/* This doesn't seem to be working here: */
Result = rows;
});
Console .log file (result);

Firebug says undefined.