Hi, I am doing a freeCodeCamp challenge. I have got a simple question but I do no understand something in the below function. why var testArr is given in the challenge but then in the function is given as arr and not as testArr? Sorry I know it might sound to simple for all of you. function nextInLine(arr, item) {
arr.push(item);
let removed = arr.shift();
return removed;
}
var testArr = [1,2,3,4,5];
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6));
console.log("After: " + JSON.stringify(testArr));
I've released the alpha version of spreadsheet files importer cli: sxi
. More details may be found on the package readme:
https://github.com/Siemienik/XToolset/blob/master/packages/xlsx-import-cli/README.md
(xlsx-import-cli is part of XToolset - set of high level api tools for XLSX files).
Any feedback welcomed, any stars loved :heart: .
Hey guys!
I am looking for a front-end developer (JS, React) in Bright Pattern. This is a San Francisco company developing an omnichannel contact center.
The task is rewriting one of the system modules in React (now it is on Google Web Toolkit).
Requirements:
You'll create a complex highload product with real usersand work in a high-performance expert engineering team, learn and improve working together. At your wish - business trips or relocation to our main office in San Francisco (L1 visa).
Direct contract with Bright Pattern (USA).
telegram for requests or questions - @o_kuzi
Hi, I'm trying to write a unit test for a class having some real-time functionality, but unable to do it. Can somebody help regarding what should be done to test the class and what behaviour can be easily tested?
class AccountService{
client;
constructor() {
this.client = new Stomp.Cleint({
brokerURL: url
})
}
async getData() {
this.client.onConnect = () => {
this.client.subscribe('/message', this.callback);
}
this.client.onStompError = () => { }
this.client.activate();
}
callback(message) {
const payload = JSON.parse(message);
pubsub.publish('accountData', payload.body);
}
}
I dont want to make a connection with the stomp server, since it is external service.
Hi good morning, I would like to have some feedback about this https://github.com/SaptakBhoumik/WebPlus
Is there something that can be done better?
thanks