{"id":23435534,"url":"https://github.com/customcommander/screening","last_synced_at":"2026-01-22T14:35:57.564Z","repository":{"id":73818692,"uuid":"21904192","full_name":"customcommander/screening","owner":"customcommander","description":"Stuffs you expect interviewees to know","archived":false,"fork":false,"pushed_at":"2014-09-22T10:28:48.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T17:47:39.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/customcommander.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":"2014-07-16T14:30:47.000Z","updated_at":"2014-07-16T14:30:47.000Z","dependencies_parsed_at":"2023-02-22T09:01:05.613Z","dependency_job_id":null,"html_url":"https://github.com/customcommander/screening","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/customcommander/screening","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Fscreening","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Fscreening/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Fscreening/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Fscreening/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/customcommander","download_url":"https://codeload.github.com/customcommander/screening/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Fscreening/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28664656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-12-23T12:51:49.626Z","updated_at":"2026-01-22T14:35:57.548Z","avatar_url":"https://github.com/customcommander.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"0.  What's the difference between `call()` and `apply()`?\n    How and why would you use them?\n\n0.  Write a function that tells me if a word is an anagram or a palindrome of another word.\n\n    A palindrome is a word that you can read both ways (e.g. `abba`).\n    An anagram is a word that contains every letters of another word (e.g. `rome` and `more`).\n\n    Example:\n\n    ```javascript\n    is_anagram_or_palindrome(word_a, word_b); // true or false\n    ```\n\n    NB: You don't need to do parameters validation.\n\n0.  One of these assertions will fail. Which one and why?\n\n    ```javascript\n    // Returns true if thing is an object\n    function is_object(thing) {\n        return thing \u0026\u0026 Object.prototype.toString.call(thing) === '[object Object]';\n    }\n\n    console.assert(is_object([]) === false               , 'assert #1');\n    console.assert(is_object({}) === true                , 'assert #2');\n    console.assert(is_object(null) === false             , 'assert #3');\n    console.assert(is_object(new function () {}) === true, 'assert #4');\n    ```\n\n0.  This is the content of a file named **foo.js**:\n\n    ```javascript\n    function foo() {\n        (function () {\n            alert('hello world');\n        })();\n    }\n    ```\n\n    And this is **foo.html**:\n\n    ```html\n    \u003c!DOCTYPE html\u003e\n    \u003chtml\u003e\n        \u003chead\u003e\n            \u003cscript src=\"foo.js\"\u003e\u003c/script\u003e\n        \u003c/head\u003e\n        \u003cbody\u003e\u003c/body\u003e\n    \u003c/html\u003e\n    ```\n\n    What happens when **foo.html** is loaded in a web browser?\n\n0.  What is the output of the following program?\n\n    ```javascript\n    function foo() {\n      return new bar();\n    }\n\n    function bar() {\n      return {};\n    }\n\n    function baz() {\n    }\n\n    var a = new foo();\n    var b = new bar();\n    var c = new baz();\n\n    try {\n      console.log('#1: ', a instanceof foo ? 'yes' : 'no');\n      console.log('#2: ', a instanceof bar ? 'yes' : 'no');\n      console.log('#3: ', b instanceof bar ? 'yes' : 'no');\n      console.log('#4: ', c instanceof baz ? 'yes' : 'no');\n    } catch (e) {\n      console.log('err!');\n    }\n    ```\n\n0.  Which of the following assertions will fail?\n\n    ```javascript\n    function assert_equal(a, b, message) {\n        if (a !== b) {\n            console.log(message);\n        }\n    }\n\n    assert_equal(true    , true     , 'test #1');\n    assert_equal(true    , 1        , 'test #2');\n    assert_equal([1,2]   , [1,2]    , 'test #3');\n    assert_equal({}      , {}       , 'test #4');\n    assert_equal(10      , '10'     , 'test #5');\n    assert_equal('foo'   , 'foo'    , 'test #6');\n    assert_equal(Infinity, Infinity , 'test #7');\n    assert_equal(null    , undefined, 'test #8');\n    assert_equal(NaN     , NaN      , 'test #9');\n    assert_equal(1.0     , 1        , 'test #10');\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomcommander%2Fscreening","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustomcommander%2Fscreening","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomcommander%2Fscreening/lists"}