Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printf = (function (format) {
- len=format.match(/%/gi);
- for(i=0;i<=len.length;i++)format=format.replace(/%/, arguments[i+1]);
- return (format);
- })
- printf("Eu sou o % e tenho % anos.", "Kyl3", "9999");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement