I have the following V8 code:
Local<String> getSumString(int32_t a, int32_t b){
int32_t sum = a + b;
return String::Concat(String::New("The sum is: ") , String::New(sum));
}
In the above function I want to add a
and b
, then want to return a string "The sum is: CALCULATED_SUM " .
I'm having problems in converting the calculated sum to a String so that it can be concatenated with other String.
See Question&Answers more detail:os