0

separate

How can I separate the first and second username in java script. alert("السلام عليكم"); var user= prompt("ادخل الاسم الاول"); var user=prompt("ادخل الاسم الثاني "); alert(user+user);

15th Feb 2020, 10:07 AM
Kaka Oscar
Kaka Oscar - avatar
1 ответ
+ 6
1. You can't have two different values assigned to the same variable. You must create two separate variables: user1 and user2 2. Do you mean like this?: user1 + ' ' + user2
15th Feb 2020, 10:23 AM
Aymane Boukrouh
Aymane Boukrouh - avatar