Well , in python or java or … we do sth like : (the python version )
tmp = "how%s" %("isit")
and now tmp looks like “howisit”.
is there any bulit in thing like that in javascript ? ( rather than sprintf )
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nop, there isn’t. You can do string concatenation.
Or
replacein other situations. This is a stupid example but you get the idea: