JSFiddle - React, Tailwind, and code Playground
by smacky311
JavaScript
/*function MyFunc(one) {
document.writeln(arguments[0]);
arguments[0] = 2;
}
var one = 1;
MyFunc(one);
document.writeln(one);
*/
function MyFunc2(two) {
document.writeln(two);
document.writeln(arguments[0]);
arguments[0] = "554";
two = "asdf";
document.writeln(two);
document.writeln(arguments[0]);
}
var two = "2";
MyFunc2(two);
delete MyFunc2.two;
MyFunc2(two);
/*
document.writeln(two);
function MyFunc3() {
return "hello world";
}
function MyFunc4() {
return "goodbye world";
}
function SetWorld(func) {
arguments[0] = MyFunc4;
document.writeln(arguments[0]());
}
var hello = MyFunc3;
SetWorld(hello);
document.writeln(hello());
*/