Skip to content

Commit 9682a03

Browse files
royklutmanjaviereguiluz
authored andcommitted
Update simple-example.rst to use const for jQuery
Updated simple-example.rst to use `const` instead of `var` for requiring jQuery, so it's in line with other examples in the front-end section.
1 parent 790f012 commit 9682a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/encore/simple-example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Great! Use ``require()`` to import ``jquery`` and ``greet.js``:
163163
// assets/js/app.js
164164
165165
// loads the jquery package from node_modules
166-
var $ = require('jquery');
166+
const $ = require('jquery');
167167
168168
// import the function from greet.js (the .js extension is optional)
169169
// ./ (or ../) means to look for a local file

0 commit comments

Comments
 (0)