What if my `screen width < 1200` then only this `alert('1200')` alert is shown and when my `screen width < 640` then only this `alert('640')` alert is shown. I need to do this without the use of `else` block.

[Fiddle](http://jsfiddle.net/t1u3d6xb/)

```js
if ($(window).width() < 1200) {
  alert('1200');
}
if ($(window).width() < 640) {
  alert('640');
}
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
```