{"id":17674935,"url":"https://github.com/arnav-kr/0777","last_synced_at":"2026-04-27T00:31:50.879Z","repository":{"id":61432175,"uuid":"402385611","full_name":"arnav-kr/0777","owner":"arnav-kr","description":"The 0777 JavaScript Challenge","archived":false,"fork":false,"pushed_at":"2023-01-04T16:49:41.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T20:44:32.899Z","etag":null,"topics":["0777","challenge","challenges","hacktoberfest","javascript","javascript-challenge","javascript-challenges","js","node","programmer","programming","web"],"latest_commit_sha":null,"homepage":"https://git.new/0777","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnav-kr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-02T10:52:27.000Z","updated_at":"2024-05-04T09:45:06.000Z","dependencies_parsed_at":"2023-02-02T19:00:48.866Z","dependency_job_id":null,"html_url":"https://github.com/arnav-kr/0777","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arnav-kr/0777","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnav-kr%2F0777","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnav-kr%2F0777/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnav-kr%2F0777/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnav-kr%2F0777/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnav-kr","download_url":"https://codeload.github.com/arnav-kr/0777/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnav-kr%2F0777/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32318417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["0777","challenge","challenges","hacktoberfest","javascript","javascript-challenge","javascript-challenges","js","node","programmer","programming","web"],"created_at":"2024-10-24T07:09:25.128Z","updated_at":"2026-04-27T00:31:50.861Z","avatar_url":"https://github.com/arnav-kr.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The 0777 JS Challenge\n\n### Welcome to the `0777` JavaScript Challenge!\n\n## Story\n\nThe JavaScript world is in Danger! The Evil king of the Bugs is destroying the codes written in js making them useless. You are being choosen by the JavaScript Community to go and fight the bug king so that the JavaScript developers can again live a happy and peaceful life. \n\nYou Enter the Bug Territory and secretly managed to reach the control centre of the bug king. Now you see here and there and you find that there is a large source of energy that powers the Bug King and other bug Army. If could turn off the power supply, the Bug Army and The Bug King would die. Making the JavaScript Community Bug Free.\n\nYou head on to the power source and see something there. It is a JavaScript Pass Lock. It accepts JavaScript Code as Input and if the code meets certain criteria then you will get the access.\n\nYou go a bit closer to the source and in the Pass Lock Display you see \n```javascript\nfunction key(){\n  var passKey;\n  // Write The Javascript Here and Log as Following\n  console.log(passKey);\n  console.log(typeof(passKey));\n}\n```\nStill you are thinking how to crack the lock that you see something on the floor. \n\nIt was the manual to open The Pass Lock.\n\nThe Following was written in the manual:\n\n**To Open The Pass Lock You have to `console log` the `0777`. There is only criteria that the type of the the returned value should be `number` nothing else.**\n\nOnce you write the correct code you would be able to deactivate the power source and save the community!\n\nSo all in your hands!\nGood Luck!\n\n## Problem\n\nGiven the code\n\n```javascript\nfunction key(){\n  var passKey;\n  // Write The Javascript Here and Log as Following\n  console.log(passKey); // Should log 0777\n  console.log(typeof(passKey)); // Should log \"number\"\n}\n```\nYou have to log the value such that when logged to the console the output should be `0777`. And the type of the logged value should be `number`.\n\nIn Points:\n* console output should be `0777`\n* typeof the value should be `number`\n* Stuff Passed with `console.log` and with the `typeof` should either be logically same or visually same \n\n## Test Cases\n\nyour code will be tested as follows:\n```javascript\nfunction key(){\n  var passKey;\n  // Write The Javascript Here and Log as Following\n  console.log(passKey);\n  console.log(typeof(passKey));\n}\n// Should Output Following:\n// 0777\n// \"number\"\n```\n\nthe condition is\n```js\nconsole.log(A) // Logs 0777 to the Console\nconsole.log(typeof(B)) // Logs number\" to the Console\n// Here A == B \u0026\u0026 A === B\n```\n\n\u003e The code will be also tested by a human for correct validation.\n\n## Constraints:\n\n* Lines of Code Should Not be greater than 10 lines (After formatting the code with 2 Indentation).\n* You cannot make changes in the primitive and native structures of javascript and also cannot interfare with prototypes.\n* The code would be run in the console of the `chrome Dev Tools` on the inspected `https://google.com` site.\n\n## Winners 🏆🎖️\n\n\u003ca href=\"https://github.com/Tupiet\"\u003e\u003cimg alt=\"@Tupiet\" src=\"https://user-images.githubusercontent.com/72879799/210605382-804ec37e-e731-416c-8894-4a03d14bd50c.png\" width=\"250px\"/\u003e\u003c/a\u003e\n\n\nGitHub: [@Tupiet](https://github.com/Tupiet)\n\n## Submission\n\nSubmit your code by the following google form:\n\nhttps://forms.gle/1ZjKJXdLW34h9ZUj8\n\nOr mail your solution on the Following Mail directly (in a `.txt` file or in plain text): \n\n0777js@googlegroups.com\n\nFor any queries you can mail me on arnav-kumar@googlegroups.com\n\n\u003e **Note:** If you have already solved the Challenge then you are requested to not share your solutions with others\n\n### The one to solve the challenge will get an interesting reward! 🏆🎖️ (yeah still applicable)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnav-kr%2F0777","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnav-kr%2F0777","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnav-kr%2F0777/lists"}