Limit is used to specify the number of records to return. It is available with only select.

Sql

Select * from Table_Name Limit number;

JsStore

connection.select({
    from: "Table_Name",
    limit: number
}).then(function(results) {
    //results will be array of objects.
    console.log(results);
}).catch(function(error) {
    alert(error.message);
});

Example