背单词之小学篇(附 作为面试官我的面试问题)day1

603 阅读5分钟

目录

这篇文章是主要以背单词为主,这是系列文章。会在这里了记录背过的单词内容,特点就是背单词的同时也能练习前端技术,如何实现的?看完本文就知道了!!!。单词会有名字和例句,例句是英语。我的学习方法是跟读,先看单词会不会,不会加入生词表。会的话。例句能不能听懂。听懂了的情况再复述一遍。再写到js的数据结构里面。听说读写四个方面练习。面试题写面试题是因为领导交给我一个让我面试的任务。记录一下我可能会问的问题。

  1. 为什么做前端?(是否热爱)

  2. 你最新关注的前端的新的技术是哪个哪些?(是否有持续学习的能力)

  3. 给你五分钟,向我解释或者介绍一个我不知道的事儿。(表达能力,是否自己懂了也能清晰准确的给别人讲懂)

  4. 前端相关:

    4.1 什么是异步?封装一个ajax,实现点击按钮获取列表。 4.2 没有ajax前,如何实现? 4.3 介绍一下闭包以及你在工作中是否应用 4.4 如何设计一个背单词系统?数据结构的设计、以及ui组件化的设计方面来谈谈。在后端角度如何实现?用哪个数据库,表如何设计,存储速度和查询速度的取舍? 4.5 英语能力如何(听说读写) 4.6 算法相关 4.7 介绍一下重构的经验 4.8 如何快速接手别人的项目。你是怎么做的 4.9 是否项目中有过优化的想法,如何做的。结果是什么。你收获了什么。 4.10 常用的调试技巧 4.11 常用的性能优化技巧 4.12 还会别的语言么?如何理解不同语言的?新的语言是如何学习的? 4.13 前端生态 4.xx暂时想到这么多。更多的可能后面会补充 手写实现?源码阅读?github如何读源码? 遇到不会的问题如何解决的? 是否会面向google stackoverflow github 编程(哈哈)?常去的技术网站?上面的数据结构设计的如何? 如何用ts重写?为什么? 5.代码之外会做什么 5.1 投资理财? 5.2 健身? 5.3 语言学习?

  5. 下班是否会自己充电学习?

  6. 沟通和团队配合相关

  7. 做事的态度

拿4.4为例子.

我最近打算梳理一遍单词,增加自己的词汇量,从小学单词开始背起。如何背单词的同时又能站在前端的角度练习?下面代码里有答案: 涉及的知识点有,数据结构如何选择, 数组的常用高阶函数的用法,以及闭包的使用 今天准备背50个小学单词:用的软件是扇贝单词网页版


/**
 * n : the name of the word
 * e : the example of the word srting when only one example or will be array 
 */
let words =[
    {
        n:'ruler',
        e:'The country was without a ruler after the kindg died.'
    },
    {
        n:'black',
        e:'After her husband died, she dressed in black for the rest of her life.'
    },
    {
        n:'pear',
        e:'I perfer apple to pears.'
    },
    {
        n:'ear',
        e:"Dont't shot to my ears like that. I can hear you perfectly well"
    },
    {
        n:'this',
        e:'How long have you been living in this country?'
    },
    {
        n:'it',
        e:'did you see it?'
    },
    {
        n:'what',
        e:'what is your name?'
    },
    {
        n:'no',
        e:'Hand in the paper no later than TuesDay'
    },
    {
        n:'yellow',
        e:'Leaves turn yellow in the fall',
    },
    {   
        n:'three',
        e:'The old woman has three grandchildren'
    },
    {
        n:'face',
        e:[
            "'He buried his face in his hands.'",
            "Please call the police when you face danger."
        ]
    },
    {
        n:'there',
        e:[
            "There's a restaurant around the corner.",
            "There!Did you see the birds?"
        ]
    },
    {
        n:'cat',
        e:"The cat is playing with a live mouse."
    },
    {
        n:'eight',
        e:[
            "This store shuts at eight o'clock on  every Wednesday evening."
        ]
    },
    {
        n:'one',
        e:"Do you want one or two or three or four five six seven eight nine ten  eleven  twelve thirteen fourteen  ?"
    },
    {
        n:'is',
        e:'The machine is difficult to use.'
    },
    {
        n:'monkey',
        e:'He jumps up and dwon like a monkey.'
    },{
        n:"green",
        e:[
            "The grass is greee",
            "He is dressed in green today."
        ]
    },
    {
        n:"have",
        e:"He had a new car and boat."
    },
    {
        n:"pencil",
        e:"He drew the picture with a pencil."
    },
    {
        n:"dog",
        e:"I took the dog for a walk."

    },
    {
        n:"how",
        e:"How does it work?"
    },
    {
        n:'many',
        e:[
            "We don't have very many copies left.",
            "You can't have one each. We haven't got many"
        ]
    },
    {
        n:'tiger',
        e:'Lions and tigers belong to the cat family.'
    },
    {
        n:'teacher',
        e:"I asked the teacher for her advice."
    },
    {
        n:'blue',
        e:[
            'The color of the sky is bule.',
            'He wore a blue shirt today.'
        ]
    },
    {
        n:'red',
        e:[
            'The sky slowly changed from blue to red.',
            'He gave his wife a red rose.'
        ]
    },
    {
        n:'i',
        e:"I am a girl."
    },
    {
        n:'apple',
        e:"The apple tastes good."
    },
    {
        n:'a',
        e:'I heared a chlid giggling.'
    },
    {
        n:'orange',
        e:[
            'That orange dress is ugly.',
            'Do you want an apple  or an orange?'
        ]
    },
    {
        n:'seven',
        e:"The bookstore is open seven days a week."
    },
    {
        n:'banana',
        e:'I bought a bunch of bananas in the supermarket.'
    },
    {
        n:"nose",
        e:"My dog has a very good nose."
    },
    {
        n:"eye",
        e:"The suspect has dark hair and green eyes."
    },
    {
        n:'six',
        e:'My nephew is six years now.'
    },
    {
        n:'two',
        e:'I spent two years in Switzerland.'
    },
    {
        n:'colour',
        e: [
            "What's your favourite colour",
            "I have coloured my hair red."
        ]  
    },
    {
        n:'four',
        e:'The meeting should finish around four o\'clock '
    },
    {
        n:'five',
        e:'The basketball players runs five miles every day.'
    },
    {
        n:'mouth',
        e:'She opened her mouth to say something.'
    },
    {
        n:'my',
        e:'My feet are cold.'
    },
    {
        n:'nine',
        e:'The children often go to bed at nine o\'clock '
    },
    {
        n:'are',
        e:'They are my friends.'
    },
    {
        n:"bird",
        e:'He found a bird\'s nest with two eggs in it'
    },
    {
        n:"yes",
        e:"Yes, I don't see why not."
    },
    {
        n:'ten',
        e:'They can take ten people in the minibus.'
    },
    {
        n:'like',
        e:[
            'I like the look of your new assistant.',
            "He's very like his fater."
        ]
    },
    {
        n:'book',
        e:[
            "He cleared a pile of books from the floor.",
            "You'll have to book early if you want to see that fashion show."
        ]
    },
    {
      n:'do',
      e:[
          "Do you like this cat?",
          "I don't know what to do."
      ]  
    }

]

//天下无难事,唯坚持二字,为成功之要诀 坚持学习了181分钟

const addId = (words)=>{
    let startId = 0
    return words.map( w => {
        !w.id && (w.id = startId++)
        return w 
    })
}

const listNamesOfWords = (words)=>{
    return words.map(w=> w.n)//output all words in array 
                .sort((a,b)=> a.localeCompare(b)) //startswith a b c sort 
}

//add increaseId for each word
console.log(addId(words))

//log all words name 
console.log(listNamesOfWords(words))

let len = words.length
console.log( '今天背了' +len + '个单词,继续加油!')


总结

  • 以上就是本文全部内容, Github 地址,抛砖引玉,希望各位有更好的意见,欢迎留言,我是前端小吴。感谢阅读!!如果有写的不对的地方,欢迎指出!
  • 欢迎关注我的公众号前端关宇,一起学习前端,进阶前端!
  • 欢迎加入背单词群,从小学单词背起,背到你自己的设定目标为止,加我微信,回复关键词掘金背单词,拉你入群,一起进步!