Code: Select all
function add(a, b) {
return a + b;
}
const res = add(5, 10);
console.log(res);How do I get 15 in "the result"?
What am I missing?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
function add(a, b) {
return a + b;
}
const res = add(5, 10);
console.log(res);Code: Select all
function add(a, b) {
return a + b;
}
add(5, 10);
It is of great relevance if you want to extend LiveCode's capabilities to things that is normally out of its scope.
Code: Select all
do [javascript code] with "javascript"
Just as HyperCard was arguably the most powerful, scriptable, rich media engine included in every GUI device of its day, the browser engine is the most powerful, scriptable, rich media engine included in every GUI device today.

Code: Select all
do [javascript code] as "javascript"