Created
June 7, 2016 09:53
-
-
Save srdjan-m/780b6ae41a6816b4ae30f55dd45102af to your computer and use it in GitHub Desktop.
javascript: convert number to string with 'px' as sufix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toPixels(pNum) { | |
'use strict'; | |
return pNum + 'px'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment