how to check the length of a string in jquery

JavaScript
var string = "string"
string.length
Source

Also in JavaScript: