I came across a interesting code. If we run the below code snippet, green class will be applied for both the divs. Can anyone explain why?
.orange {
color: orange;
}
.green {
color: green;
}
<div class="orange green">Div 1</div>
<div class="green orange">Div 2</div>