Javascript engineer sollicitatievragen

1K

Sollicitatievragen voor Javascript Engineer gedeeld door sollicitanten

Meest gestelde sollicitatievragen

Sorteren: Relevantie|Populair|Datum
Spotify
Er werd een Javascript Engineer gevraagd...15 mei 2013

In Javascript, how would you make a variable read-only?

6 antwoorden

declaring a variable using const keyword. This declares a read-only named constant Minder

There are few solutions, one is to use revealing modular pattern where you return function that only retrieves value of property, and everything is wrapped in closure. Other solution is to use Object.defineProperty where you cane be specific and set write value of object property. Minder

There is no "const" keyword back in 2013 when the question was asked.

Meer reacties weergeven
Nagarro

Convert : person_First_Name to personFirstName

4 antwoorden

var name = "person_First_Name"; var d = name.split("_").join(""); console.log(d); Minder

'Person_First_Name'.split("_").join("");

function convertor(name){ let result="" splittedNames=name.split("_") splittedNames.map(a=>{ result+=a }) console.log(result); } convertor("Person_First_Name") Minder

Meer reacties weergeven
Dassault Systemes

4)write program to remove duplicate in an array

4 antwoorden

function removeDuplicateUsingSet(arr){ let unique_array = Array.from(new Set(arr)) return unique_array } Minder

var chars1 = ['A', 'B', 'A', 'C', 'B']; var uniqueChars2 = []; chars1.forEach((c) => { if(!uniqueChars2.includes(c)) { uniqueChars2.push(c); } }) Minder

for(let i=0; i

Meer reacties weergeven
IOMEDIA

How will you put a child div in center to outer container?

2 antwoorden

{display:block; margin:0 auto;}

Margin : auto

Dassault Systemes

6) what will be the value of a and b if Var a = 5 +7 + “8” Var b = “8”+5+7

3 antwoorden

a=128,b=857

a = 128 b= 857

a=128 b=124

Pin Click

Q : About Basic tech knowledge and one good assignment

2 antwoorden

Good

Please do assignment carefully

Automattic

Did you write the perfect cookie cutter cover letter, complete is "proper capitalization of our oh-so-creative company name!" when you sent your resume?

2 antwoorden

You do realize that JavaScript is a case-sensitive language, right?

No. I expect potential employers to be more interested in my extensive relevant experience, above and beyond my ability to compose an email. Minder

Capital One

To reverse a string without using reverse keyword.

2 antwoorden

Can use the loop in structure

Str.split('').reverse().join('')

GoDaddy

Using a nested for() loop is inefficient, can you do it more efficient than the native String.indexOf() method? Without nesting for loops or recursion.

2 antwoorden

Convert the strings to objects with each word being added as a property to speed up the lookup. I had heard of this technique but never done it myself. Minder

sort the words will be done in n Log n . for each word in 1st string do binary search on other string which will run in n log n so overall complexity will be n log n. Minder

Dassault Systemes

2)How to clear an array by different way

2 antwoorden

A = []; orelse; A .length=0; orelse; loop it till length is 0 and pop all elements Minder

arr.splice(0, arr.length)

Weergave: 1 - 10 van 1.244 sollicitatievragen