簡體   English   中英

我該如何解決這個 JavaScript 挑戰?

[英]How can I solve this JavaScript challenge?

我對編碼很陌生。 有人可以幫我解決這個難題並向我解釋嗎? 謝謝

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM