The function () use () {} is like closure for PHP.

Without use, the function cannot access parent scope variable

The use variable's value is from when the function is defined, not when called

use variable by-reference with &

that was a comment I found in StackOverflow

https://stackoverflow.com/a/30547499/7085257

<div>
<div class=”custom-file”>
<br>
<input name=”image” id=”image” type=”file” class=”custom-file-input”
accept=”image/*”
onchange=”document.getElementById(‘output’).src = window.URL.createObjectURL(this.files[0])”><label
class=”custom-file-label”>Choose File</label>
</div>
</div>
<div class=”col-sm-12"><img id=”output” src=”” class=”img-fluid”></div>

If you want to create new disk go to :

config => filesystems.php

The base code structure

At the very beginning, the first thing we’re going to need is a starting block of code that we can modify to suit our needs:

This was solved you need to do one thing.
You have to create a new js file or new empty js file
Then you just add that

You see the name “ datascript ” was same. So you should look after that both of name will be same.

I wrote the name ‘ datascript ’ name could be anything pizza, burgers, etc

I think you find the solution 💻

Okay, first you go to the page where you work or testing code.
Then press Ctrl+U and go to the source code. See

<script type=’text/javascript’ src=’https://oblate.dev/wp-includes/js/jquery/jquery.js'></script>

<script type=’text/javascript’ src=’https://oblate.dev/wp-includes/js/jquery/jquery-migrate.min.js'></script>

This two script are there or not. If now type

On your script function.php

Then you have to do this one on your script where you did not find jquery

The Problem solve 💻

Md. Najmul Hasan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store