虽然网络上也有原题,为做些许保密,以下使用相同原理的例子。

  1.  Write a regular expression to extract an ID from a text. The ID consists of 8 hex numbers, and follows the string "postid=". (The extracted value should not contain the string "postid=") For example, below text, should extract "12106616“

    https://i.cnblogs.com/EditPosts.aspx?postid=12106616&postAddress=127%200%200%201 GET

  2. What will the code below output to the console and why?
     1 var newObj= {
     2     foo: "bar",
     3     catchThis: function() {
     4         var self = this;
     5         console.log("outer func:  this.foo = " + this.foo);
     6         console.log("outer func:  self.foo = " + self.foo);
     7         (function() {
     8             console.log("inner func:  this.foo = " + this.foo);
     9             console.log("inner func:  self.foo = " + self.foo);
    10         }());
    11     }
    12 };
    13 newObj.catchThis();
  3. What will the code below output to the console and why? 
    1 Promise.resolve(1)
    2   .then((x) => x / 2)
    3   .then((x) => { throw new Error('My Error') })
    4   .catch(() => 5)
    5   .then((x) => x * 2)
    6   .then((x) => console.log(x))
    7   .catch(console.error)
  4. Programming: Implement a function by using JavaScript, to count each word's occurrencenumber in a text. (assume that all the words split using space; G2 is a library based on visual encoding for manipulating the grammar of graphics.).
  5. Programming: Use H5, CSS and JS to write a page to display 6 images with following requirements. (Requirement: omit)

Reference

  1. https://www.toptal.com/javascript/interview-questions
  2. http://quizbucket.org/nodejs-interview-questions?page=5

附英文自我介绍(请挑错):

My name is JumperMan, I am from Guangdong Province, graduated in 20xx with a bechalor degree.
Since becoming a computer engineer, I have worked for almost 6 year.
At the begining of the 2 years, I worked in a shoes industry company, coding and developing relevant procedure with ASP.NET of c# language and the database of SQL server in the platform of VS2010.
In the following 3 years, I worked in a software company of the textile industry, then turing into the front end engineer with AngularJS, AvalonJS and Node. The former company business serves for the traditional erp(enterprise resource planning) which we focus on some procudures such as order supervisor, finace, warehouse, statistics and so on.
In the lastest year, I worked in a data analysis company of the enviromental sanitation. I become a frond end developer, specialising the Web development and mobile terminal development within the front-end framework of Vue, the UI component library of ElementUI, the visual statistical graphics of AntV(known as Alipay's Ant Financial Group).

12-22 09:28
查看更多