Benjamin K
Benjamin K

Reputation: 316

What is the meaning of "const%20d"?

I'm not javascript developer, but i got exceptionally a mission about it. But there is something i can't understand.

<a onclick="return false;" href="javascript:(function(){const%20d=document,n='bmletAWPlus';if(window.bmletLoader===undefined){const%20e=d.createElement('script');e.src=

It's const%20d and const%20e, i can't find any info about it on the web. I guess it's const %20d and was looking for ascii or html value. But i still don't understand what this is really doing.

Can someone explain ?

Thanks

Upvotes: 2

Views: 1257

Answers (3)

Roy G
Roy G

Reputation: 949

The JavaScript Encoding replaces most punctuation symbols with the equivalent hex-codes

%20 is the encoding for space (0x20 being space's ASCII code).

Encoding normally replaces a space with a plus (+) sign or with %20.

https://www.the-art-of-web.com/html/character-codes/

Upvotes: 3

Alen Genzić
Alen Genzić

Reputation: 1418

The %20 token is a ASCII URL encoded value for a space. It is usually visible in URLs that have spaces in them.

Info on all the other characters here: https://www.eso.org/~ndelmott/url_encode.html

Upvotes: 1

Timothy
Timothy

Reputation: 3593

const%20d stands for const and a space character

Upvotes: 1

Related Questions