Hello guys, I'm new to JS. Actually got to learn a few days.
Need a little help in a program that increment or decrement the value of a
variable using the letters "a, b, c, d, e." And that beginning with any
letter I can make a loop just by clicking the + or -.
I have no idea how to do that.
ex:. Beginnings in letter "c" by clicking the + 3 times, will have to
finish the letter "a".
The html code would look like this:
<div class="btn-group">
<button type="button" class="btn btn-default"> - </ button>
<button type="button" class="btn btn-default"> {{letter}} </ button>
<button type="button" class="btn btn-default"> + </ button>
</ div>
Olá pessoal, sou novo no JS. Na verdade peguei pra aprender a alguns dias.
Preciso de uma ajuda num programinha que incremente ou decremente o valor
de uma variável usando as letras "a, b, c, d, e". E que começando por
qualquer letra eu posso fazer um loop só clicando no + ou no -.
Não faço idéia de como farei isso.
ex.: Começo na letra "c" clicando no + 3 vezes, terá que terminar na letra
"a".
O código html seria assim:
<div class="btn-group">
<button type="button" class="btn btn-default"> - </button>
<button type="button" class="btn btn-default">{{letra}}</button>
<button type="button" class="btn btn-default"> + </button>
</div>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.