简体   繁体   English

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

[英]How can I solve this JavaScript challenge?

I'm quite new to coding.我对编码很陌生。 Can someone help me with this puzzle and explain it to me?有人可以帮我解决这个难题并向我解释吗? Thank you谢谢

 // 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();

This is the JavaScript code.这是 JavaScript 代码。 I have already done the first part i believe.我相信我已经完成了第一部分。

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

The goal should be an invite key or a link Here's the link to the challenge https://hyper.co/developers目标应该是邀请密钥或链接 这是挑战的链接https://hyper.co/developers

When you find a way to resolve the Error 401 Unauthorized , following code should print you out the invite key / whatever:当您找到解决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();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM