Làm chơi javascript
var crName, userName, chr, fn, fns, i, j, k, l, len, len1, len2, menu, ref;
chr = function (fn) {
return `${fn} children`;
};
ref = ['s', 'a', 'f'];
for (j = 0, len = ref.length; j < len; j++) {
fn = ref[j];
chr(fn);
}
crName = ['u', 't', '8', 'a', 'm'];
menu = function (i, userName) {
return `Menu Item ${i}: ${userName}`;
};
for (i = k = 0, len1 = crName.length; k < len1; i = ++k) {
userName = crName[i];
menu(i + 1, userName);
}
fns = ['i', 'dont', 'want', 'the', 'ticket'];
for (l = 0, len2 = fns.length; l < len2; l++) {
fn = fns[l];
if (fn === 'chocolate') {
chr(fn);
}
}
console.log(Discourse.User.current().username)