Login | Register | FAQ
Anonymous

Javascript-lesson 5: smart script with operators

+ Post a reply

2 posts Page 1 of 1


Javascript-lesson 5: smart script with operators

by Jesmion » Tue Jan 13, 2015 11:29 am

Hi, i have been through the javascript lesson 5, about smart script with operators, could learn operator's assignment in diverses, and comparable operators, but if i may ask, can a string have increment or is it only additions?
User avatar

Jesmion

  • Posts: 91
  • Joined: Sun Sep 14, 2014 8:07 pm
  • Location: Uruagu Umudioka

Re: Javascript-lesson 5: smart script with operators

by XainPro » Sun Feb 08, 2015 8:08 pm

sting can be concatenated in JavaScript by using + sign here is an example


<script>
var txt1 = "What a very";
var txt2 = "nice day";
alert( txt1 + txt2 );
</script>
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1

cron