William Grimsley William Grimsley - 1 month ago 6
Javascript Question

How Do I Add A Space To This Part Of JavaScript Code?

I am trying to edit some JS code but I cannot seem to add a space without the graphs that use this code to produce them, stops working.

I want to add a space into this part of code inbetween "valueSuffix:" and "config.rain.units":

tooltip: {valueSuffix: config.rain.units+'/hr'}


Is it possible?

Answer

You mean like this?

tooltip: {valueSuffix: ' '+config.rain.units+'/hr'}
Comments