Tech Terminology to Prepare for Interviews
If you are a recent bootcamp graduate such as myself, going to interviews there are terminologies that I found useful and would like to share with you.
MERN — consists of 4 technologies that makeup the stack. MongoDB — document database, Express — Node.js web framework, React — client-side JavaScript framework, Node — Node(.js) — the premier JavaScript web server. MERN is a 3-tier architecture between frontend, backend and database — all using JavaScript and Json. MERN is one of several variations of the MEAN stack where Angular.js frontend is replaced with React. Another variation MEVN where any frontend JavaScript framework can work.
Mocha is JavaScript test framework running on Node.js and in the browser making asynchronous testing simple. Hosted on GitHub.
ES6 — was the second major revision to JavaScript. Also known as ECMA Script 6 and ECMAScript 2015. Some of the new features in ES6 are:
let — keyword variable with block scope
const- keyword variable with a constant value
arrow functions — allow short syntax for function expressions
looping over an array
looping over a string
Example:
<h2>JavaScript For/Of Loop</h2>
<p>The for/of statement loops through the values of an iterable object.</p>
<p id=”demo”></p>
<script>
const bootcampGraduatesGetJobs = [“1 week”, “3 weeks”, “3 months”, “longer for some”];
const text = “”;
for (const x of bootcampGraduatesGetJobs) {
text += x + “<br>”;
}
document.getElementById(“demo”).innerHTML = text;
</script>
JavaScript classes class is used to create objects
JavaScript promises ‘The Promise
object represents the eventual completion (or failure) of an asynchronous operation and its resulting value ‘(MDN Web docs)
allows function parameters to have default values
function myFunction(x, y = 100) {
return x + y;
}
myFunction(10); // will return 110
Array.find() returns the value of the first array element that meets the criteria
Array.findIndex() returns the index of the first array element that meets the criteria
Happy coding and great outcome on interviews!