Hello
This is my code : https://jsfiddle.net/5ezc4jqv/3/
Is there another way to convert a given String to Template String other than copying it inside “GivenString
” .
Thank you
Hello @Agney
you doing great well done
maybe using that
so you call it 4 times as replace will replace first occurrence while using substring
so it will be like that
myString = myString.replace("*", theorem).replace("*", a).replace("*", b).replace("*", Math.sqrt(a ** 2 + b ** 2));
not sure if there other way or not and have a nice day
Thankyou for your reply.I did not know we could use replace() in such a manner.Have a nice day.
you very welcome and thanks a lot