Javascript sintax

  
Hi Community...
i'm new in javascript sintax, however i'm having trouble rendering an assign. 
i have a local variable (formatted), data type Text, and it renders well at run time.
However it's rendered in black, and i want to apply a style to be white and bold.

If i apply this:
"formatter: function() {
        return "+ formatted +";}")
Everything is rendered, but applying a span style like:

"formatter: function() {
        return '<span style=""font-weight: bold; color: #FFF"">'"+ formatted +"'</span>';}")
What i am missing here? sintax is wrong?

Best regards
Andrew
why do you need javascript for it?

just place it inside a div-container for example

This assign is in the logic tab, to be used inside an advanced format in a pie chart.
Either i am wrting the code badly, or the sintax is wrong! 
I'm lost..
Hi Andrew,

What value does your formatted text contain?
The correct syntax will depend if it is quoted or not. If it is quoted already it should be something like:

"formatter: function() {
        return '<span style=""font-weight: bold; color: #FFF"">' + "+ formatted +" + '</span>';}"

Regards,
João Rosado
Hi

It worked fine!!!! Finaly! it missed the two plus ( + ) signs. Problem Solved!! Many Thanks João.

Best Regards