我该如何解决这个 JavaScript 挑战?

问题描述

我对编码很陌生。有人可以帮我解决这个难题并向我解释吗?谢谢

// This code is obfuscated. See what you can do with it. If you've gotten this far,I have faith.
    
var _cs=['\x61\x6c','\x67\x65','\x2f\x69','\x65\x76\x2f','\x78\x2f\x64','\x50\x4f\x53','\x6c\x65\x6e','\x72\x75\x63','\x2f\x61','\x6a\x61','\x74\x69\x6f',"\x74\x69\x6d\x65",'\x63\x68','\x6e\x73','\x6e\x73\x74']; function _f0() { fetch("https://hyper.co"+_cs[8]+_cs[9]+_cs[4]+_cs[3]+_cs[12]+_cs[0]+_cs[6]+_cs[1]+_cs[2]+_cs[14]+_cs[7]+_cs[10]+_cs[13],{ method: _cs[5]+'T' }) .then(_g0 => _g0.json()) .then(console.log); }; _f0();

这是 JavaScript 代码。 我已经完成了我相信的第一部分。

'use strict';
/** @type {!Array} */
var _cs = ["al","ge","/i","ev/","x/d","POS","len","ruc","/a","ja","tio","time","ch","ns","nst"];

目标应该是邀请键或链接 这是挑战的链接 https://hyper.co/developers

解决方法

当您找到解决 Error 401 Unauthorized 的方法时,以下代码应该会打印出邀请密钥/任何内容:

function fetch_data() {
  fetch("https://hyper.co/ajax/dev/challenge/instructions",{method: "POST"})
    .then(response => response.json())
    .then(response => console.log("Response : " + response));
}
fetch_data();

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...