title: using javascript calculated values in less
body: <p>In LESS I used following code to get the window's height.</p>
  
  <pre><code>@winheight:`$(window).height()`
  </code></pre>
  
  <p>What I'm getting is a number, but when i add <code>px</code> there to have the unit,</p>
  
  <pre><code>height: @winheight px;
  </code></pre>
  
  <p>It will compile to something like <code>height: 910 px</code>.</p>
  
  <p>I tried to have the unit after the javascript evaluation too. but I got the same result.</p>
  
  <pre><code>@winheight:`$(window).height()`px
  height: @winheight;
  ...
  
  height:910 px;
  </code></pre>
  
  <p>How can I get <code>height:910px</code> there (without the space between number and unit) ?</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>As for the first four results, it creates a string <code>height:"910px"</code>, which doesn't render correctly.</p>