Skip to content
Sign upLog in
← Back to Community
Run Js
Profile icon
matthewproskils

Type Javascript CODE In The Comments And A Very Smart Person Will Reply A Result

Voters
Profile icon
derickranieri
Profile icon
PowerCoder
Profile icon
matthewproskils
Comments
hotnewtop
Profile icon
CSharpIsGud
function Parse(s) { let funcs = []; let cur = ""; let name = ""; let gotc = false; let getn = false; let getp = false; let params = []; let body = ""; let getb = false; let fline = 0; let line = 1; let nestc = 0; for (let i in s) { if (s[i] == '\n') { // Skip new lines cur = ""; line++; // But go up a line continue; } if (s[i] == '{') { // Start getting the body getb = true; if (nestc >= 1) { body += '{'; } nestc++; continue; } if (s[i] == '}') { // Finish the function and move to the next if (nestc > 1) { body += '}'; nestc--; continue; } nestc--; getb = false; let func = { Name: name, Params: params, Body: body, Line: fline, Call: (...rest) => { func.Params.forEach((v, i) => { global[v] = rest[i]; }); eval(func.Body); }}; funcs.push(func); cur = ""; gotc = false; params = []; name = ""; body = ""; } if (getb) { // Add to the body body += s[i]; continue; } if (s[i] == ' ') { // cur variable is finished, do something if (cur == "function") { gotc = true; getn = true; fline = line; cur = ""; continue; } if (getn) { getn = false; } continue; } if (s[i] == '(' && gotc && nestc == 0) { // Start getting params if (getn) { getn = false; } getp = true; continue; } if (s[i] == ')' && gotc && nestc == 0) { // Finsih params getp = false; if (cur != "") params.push(cur); continue; } if (s[i] == ',' && getp && gotc) { // Get next parameter params.push(cur); cur = ""; continue; } if (getp) { // Add to current parameter cur += s[i]; } if (! gotc) // Add to cur variable cur += s[i]; if (getn) // Add to the name name += s[i] } return funcs; } let fns = Parse(`function ParseMe(ok) { console.log(ok) }`); console.log(fns[0]); fns[0].Call("Magic");
Profile icon
matthewproskils

@CSharpIsGud
Global Is NOt Defined

Profile icon
CSharpIsGud

@matthewproskils
Must be a node specific thing. Why are you spending time running what people put here anyway.

Profile icon
xxpertHacker
"use strict"; new WebAssembly.Instance( new WebAssembly.Module( Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, 20, 2, 96, 13, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 0, 96, 0, 0, 2, 17, 1, 3, 101, 110, 118, 9, 119, 114, 105, 116, 101, 67, 104, 97, 114, 0, 0, 3, 2, 1, 1, 4, 4, 1, 112, 0, 0, 5, 3, 1, 0, 1, 7, 19, 2, 6, 95, 115, 116, 97, 114, 116, 0, 1, 6, 109, 101, 109, 111, 114, 121, 2, 0, 10, 42, 1, 40, 0, 65, 200, 0, 65, 229, 0, 65, 236, 0, 65, 236, 0, 65, 239, 0, 65, 44, 65, 32, 65, 247, 0, 65, 239, 0, 65, 242, 0, 65, 236, 0, 65, 228, 0, 65, 33, 16, 0, 11, 0, 38, 4, 110, 97, 109, 101, 2, 31, 2, 0, 13, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 1, 0) ), { env: { writeChar(...chars) { console.log( "%s", String.fromCodePoint(...chars) ); } } } ).exports._start();
Profile icon
matthewproskils

@xxpertHacker
Hello, World

Profile icon
xxpertHacker
self.open( "https://hello.xxperthacker.repl.co", "_self", "noreferrer", false );
Profile icon
matthewproskils

@xxpertHacker
Potential Virus Detected

Profile icon
xxpertHacker

@matthewproskils
Was the "Hello, world!" from earlier a virus?

Profile icon
xxpertHacker
new Array(1e9).fill();
Profile icon
RohilPatel
console.log('nobody can beat this')
Profile icon
matthewproskils

@RohilPatel
ERROR: BEATEN

nobody can beat this
Profile icon
xxpertHacker
require("fs").unlinkSync("./index.js");

Are you using a browser or Node?

Profile icon
matthewproskils

@xxpertHacker
Browser sry my memory's not good enough for different files

Profile icon
Bookie0
class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }

what is this

Profile icon
matthewproskils

@Bookie0
1. That's C... 2. Result if you run:

Uncaught SyntaxError: Unexpected strict mode reserved word
Profile icon
CodeLongAndPros

@matthewproskils
1. That’s JAVA

Profile icon
matthewproskils

@CodeLongAndPros
Hm... Still The Dumb Me

Profile icon
RohilPatel

Imma upvote this comment so ur number of cycles is 1000. Mention me in a comment soon ;) jk lol

@CodeLongAndPros

Profile icon
ironblockhd

process.env.REPLIT_DB_URL

Profile icon
ironblockhd

Hehe

Profile icon
ironblockhd

(function(){
result = "";
for(i=0;i<100;i++){
result += String.fromCharCode(i);
}
return result
})()

Profile icon
matthewproskils

@ironblockhd
Dude... I give up...

\0  !"#$%&'()*+,-./0123456789:;<=>[email protected][\]^_`abc"
Profile icon
matthewproskils

@ironblockhd
DO u have discord?

Profile icon
ironblockhd

No, sorry might get it

Profile icon
matthewproskils
Profile icon
sterlingalston

Javascript CODE

Profile icon
matthewproskils

@sterlingalston
Uncaught SYntax Error: unexpected Identifier J

Profile icon
sterlingalston

console.log("hffsgh");

Profile icon
matthewproskils
Profile icon
PowerCoder

Javascript: console.log("echo")

Profile icon
matthewproskils

@PowerCoder

image

Profile icon
ironblockhd

That actually works, it executes it as a variable definition haha

Profile icon
matthewproskils

@ironblockhd
ECHO