adding multiple classes has no effect

adding multiple classes has no effect

style

  1. .blue 
  2. {
  3.   color: blue;
  4. }

  5. .red
  6. {
  7.   color: red;
  8. }

  9. .red.blue
  10. {
  11.   color: blue;
  12. }

  13. .blue.red
  14. {
  15.   color: red;
  16. }


  1. <script src="https://code.jquery.com/jquery-1.10.2.js"></script>

  2. <p></p>

  3. <script>
  4. $('p').text('i can finally change color');
  5.         $('p').addClass('red blue');
  6. </script>

How come text is always red?