From 8396d8e2ca73aea87ed7aeff35ffb76c3d566374 Mon Sep 17 00:00:00 2001 From: Nicholette Li Date: Fri, 5 Jan 2018 12:13:59 +0800 Subject: [PATCH] Fix typo in Front End Interview questions (#95) --- front-end/interview-questions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-end/interview-questions.md b/front-end/interview-questions.md index 77ce907f6..ad68ee0ec 100644 --- a/front-end/interview-questions.md +++ b/front-end/interview-questions.md @@ -938,13 +938,13 @@ These days, [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) i ### Have you ever used JavaScript templating? If so, what libraries have you used? -Yes. Handlebars, Underscore, Lodash, AngularJS and JSX. I disliked templating in AngularJS because it made heavy use of strings in the directives and typos would go uncaught. JSX is my new favourite as it is closer to JavaScript and there is barely and syntax to be learnt. Nowadays, you can even use ES2015 template string literals as a quick way for creating templates without relying on third-party code. +Yes. Handlebars, Underscore, Lodash, AngularJS and JSX. I disliked templating in AngularJS because it made heavy use of strings in the directives and typos would go uncaught. JSX is my new favourite as it is closer to JavaScript and there is barely any syntax to learn. Nowadays, you can even use ES2015 template string literals as a quick way for creating templates without relying on third-party code. ```js const template = `
My name is: ${name}
`; ``` -However, do beware of a potential XSS in the above approach as the contents are not escaped for you, unlike in templating libraries. +However, do be aware of a potential XSS in the above approach as the contents are not escaped for you, unlike in templating libraries. ### Explain "hoisting".