Experience: 3 years
Online Assesment:
Virtual Onsite:
Round 1: (Hiring Manager)
Round 2: Technical (Front End concepts)
Take a look at the code snippet and identify some improvements: was given a HTML snippet
What color might "Hello!" be ? in bellow code block & was asked to explain why and about CSS specificity
<div id="a-container-outer" class="a-color-seasonal">
<div id="a-container-inner">
Hello!
</div>
</div>
```css
#a-container-outer.a-color-seasonal {
color: blue;
}
#a-container-inner {
color: red;
}
div div {
color: orange;
}
``` ```css
.intro {background-color: yellow;}
h1 {background-color: red;}
```
<h1 class="intro">Hello!</h1>Write HTML code to implement Accordian : https://www.w3schools.com/howto/howto_js_accordion.asp
What will be the output of given javascript snippets:
```
var x = "Hello";
function funExample() {
var x = "Is it me you're looking for?";
logger();
}
function logger() {
console.log(x);
}
funExample();
-------------------------------------------------
var x = "Hello";
function funExample() {
var x = "Is it me you're looking for?";
function logger() {
console.log(x);
}
return logger;
}
var logger = funExample();
logger();
```Implement a linkedList with addLast() and removeLast() methods.
Create a function that takes a string and returns the string with duplicates removed:
const str = 'This is is a test test string';
removeDuplicates(str); // 'This is a test string'
I implemented a solution using a hashMap, later was asked if I can use a different data structure, I used set()
How would you center a div in a page?
Round 3: (Technical Front end concepts)
what will be output of code snippet :
```
function greet(person) {
if (person == { name: 'amy' }) {
return 'hey amy'
} else {
return 'hey arnold'
}
}
greet({ name: 'amy' });
```Implement cloneDeep function to deep copy object a: with case that the object properties might have many levels of nesting and can be of type array also
```
let a = {
name: 'Jon',
fname: {
title: 'Got'
}
}
```correct the code snippet below and make it output 'doggo' : I suggested I will use call() or apply()
```
let dog = {
name: 'doggo',
sayName() {
console.log(this.name)
}
}
let consoleName = dog.sayName
```Implement the below code snippet:
```
const developer = new DeveloperBuilder('John')
.addSkill('ES6')
.addSkill('TypeScript')
.setFramework('React');
```Implement
```
const endorsements = [
{ skill: 'javascript', user: 'Chad' },
{ skill: 'javascript', user: 'Bill' },
{ skill: 'javascript', user: 'Sue' },
{ skill: 'html', user: 'Sue HTML' },
{ skill: 'css', user: 'Sue CSS' },
{ skill: 'css', user: 'Bill CSS' }
];
// Expected output
// [
// { skill: 'javascript', user: [ 'Chad', 'Bill', 'Sue' ], count: 3 },
// { skill: 'css', user: [ 'Sue', 'Bill' ], count: 2 },
// { skill: 'html', user: [ 'Sue' ], count: 1 }
// ];
```How do you align a div to center of page?
Round 4: (Technical Problem solving + 1 behavioural)
Front End Engineer interviews are a lot different from SDE role interviews and comprise of 70-80% of front end relevant concepts (HTML, CSS & Javascript) and only about 20-30% of Data Structures & Algorithms.
Some of the resources, I found helpful: