JavaScript.
I'm sure you must have heard by now the terms interpreted and compiled within the context of programming.
And I can say that JavaScript is a lightweight interpreted programming language, and you'll know exactly
what I'm talking about, right.
But basically, you know, it it brings action to the content of an HTML document.
So it means it helps to create dynamic pages so that you can, you know, make make these pages interactive.
Basically with the users.
It is capable of storing values inside variables, doing string mathematical and graphical operations.
It can also, detective, any event happens on the page.
And of course, you can do so much more.
So we talked a little bit about it earlier in the Web browser section.
After the dismal access have been assembled and put together into a Web page, JavaScript is executed
by the browsers JavaScript engine, and then this ensures that the structure and style of the page are
already in place by the time that the JavaScript starts to run.
That's why it's common to use JavaScript to dynamically modify HTML access in a document via the document
Object Model API.
So this speech is also very handy for Web pen testers to run payloads.
That's why we're talking about it.
So we're going to be using JavaScript, well, way too much, but we're going to be using JavaScript
a lot to manipulate the behavior of the victim's browser.
So besides having a general programming languages feature, JavaScript can raise its capability with
the use of APIs.
Eyebrows are APIs are built into a Web browser and are usually capable of exposing data from the surrounding
computer environment where to do even more useful, complex things.
But think of it this way.
You can even get data from the victim's computer environment.
So I will now explain to you how JavaScript can be used within a Web page.
So like access, there are three ways to add JavaScript into a document.
An external JavaScript file can be linked to the document, as I'll do here in the sample page.
This file can be stored either on the local server or a remote server.
Now, this example, Maned James is on the same server and it contains this tiny code.
And now the second way is by using a JavaScript internally, like a mark here.
Now, we're not completely the same, but it's on a page that is affected.
And the third one is using inline JavaScript code.
Now, sometimes you may hear of the server side JavaScript.
Yeah, there is a concept out there like that, for example, no JASE'S.
That's an environment that works this way, but it's not in the context or scope of this course.