+ 1

Concatenate the value from a String with a Variable in JS.

For you concatenate the value from a String with a Variable in JS/jQuery and PHP you can use this: JS/jQuery: <script type="text/javascript"> var age = 17; alert ("My Name is Rafael and my age is: " + age + "."); </script> PHP: <?php $age = 17; echo "My Name is Rafael and my age is: " . $age . "."; ?> Liked? Questions post in comments. 🙃

28th Jun 2017, 4:09 PM
Rafael Filho
Rafael Filho - avatar
5 Réponses
28th Jun 2017, 5:51 PM
Burey
Burey - avatar
+ 3
Okay, understood now. :) Keep up the good work bro.
28th Jun 2017, 4:25 PM
AgentSmith
+ 2
I'm confused. Are you just telling us or are you asking for help?
28th Jun 2017, 4:11 PM
AgentSmith
+ 1
I was saying. To help those who are starting.
28th Jun 2017, 4:13 PM
Rafael Filho
Rafael Filho - avatar
0
Thank
28th Jun 2017, 4:26 PM
Rafael Filho
Rafael Filho - avatar