+ 1
How to create variables between two strings?
The result I am getting is 4n and what I want is 4 n. I the concatenating sign between the two variables in variable e but it still not working so I wondering what is wrong. var firstletter=""; var f="John"; var d=""; d=f.length firstletter=f[3]; var e=d+ "" +firstletter; console.log(e)
2 Answers
+ 2
Anyanwu Johnbosco Chima Give space inside quote marks.
+ 1
var e=d+" "+firstletter;
Put space inside quote marks.