Re:A hiring test I'd like to run
by Alex3917 on Wednesday December 18, 2019 @08:40PM
(#21831326)
> In reality I was given only a single coding interview my whole onsite, and it was to build a JavaScript SPA, including routing/linking, without the use of any framework, just vanilla JS.
OK but that's like 4 lines of code:
Line 1: Get the URL of the current page
Line 2: Get the path part of the URL
Line 3: Using the path as a key, retrieve some chunk of text from an object
Line 4: Write that chunk of text to the DOM
I wouldn't know the syntax for any of that without googling, but that doesn't seem excessively crazy even as a question for someone who doesn't know the language.
OK but that's like 4 lines of code:
Line 1: Get the URL of the current page
Line 2: Get the path part of the URL
Line 3: Using the path as a key, retrieve some chunk of text from an object
Line 4: Write that chunk of text to the DOM
I wouldn't know the syntax for any of that without googling, but that doesn't seem excessively crazy even as a question for someone who doesn't know the language.