Question: Is there any way to find the version of Jquery using normal plain javascript.
I know to do this using JQuery itself by using the following code.

```
jQuery.fn.jquery;

```

or

```
$().jquery;

```

But this wont works for me beacuse I am not allowed to use Jquery code. Please suggest any alternative methods using only plain javascript.

Thanks in advance.

Answer: 
```
jQuery.fn.jquery

```

is a plain JavaScript property. This has nothing to do with 'using jQuery', so that's a proper 'JavaScript' way of getting jQuery's version.

*Edit:* If you just need to check, if a version of jQuery already exists, you can simply test for `window.jQuery`:

```
if ("jQuery" in window) {
    // get its version:
    var jquery_version = window.jQuery.fn.jquery;
}

```

(If you haven't seen that before: `window.jQuery` is basically the same as a global variable with the name `jQuery` in most cases.)
What do you mean by 'jquery code' - it's all just JavaScript.

This is how you reference the JavaScript function named '$':

```
$

```

This is how you call that function:

```
$()

```

This is how you access the `jquery` property of the return value of that function:

```
$().jquery

```

Which gives you what you need!