Question: Having trouble getting this script to run properly on an iphone 6. Keeps coming up as "not mobile". What am I missing?

```
$(document).ready(function(){
    if ($(window).width < 700){
        alert("mobile");
    }
    else {
        alert("not mobile");
    }
});

```

EDIT: apologies, the code I typed here had a typo, but was not the cause for my issue. I had inaccurate info on iphone resolution. Thanks everyone!

Answer: 
JQuery uses `$(window).width()`. It's a function, not a property.
This thread gets deep into the options both in Javascript and JQuery

[Get the size of the screen, current web page and browser window](https://stackoverflow.com/questions/3437786/get-the-size-of-the-screen-current-web-page-and-browser-window)