Skip to content

Commit b27e4b3

Browse files
committed
minor #9931 Update simple-example.rst to use const for jQuery (royklutman)
This PR was submitted for the 4.1 branch but it was merged into the 3.4 branch instead (closes #9931). Discussion ---------- 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. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 9682a03 Update simple-example.rst to use const for jQuery
2 parents 790f012 + 9682a03 commit b27e4b3

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)