Yozzik
Answer of these 2 questions is the same -
sample capx
1. put javascript code in cell value
"It is a " + c2_callFunction("chooseOne", ["rainy", "sunny", "trumpy"]) + " day at my place"
which will invoke c2 function, see this page, section "Javascript integration" to get more detail information.
2. eval this javascript code by expression:ExecJS of official browser object, to get return string value