Susan Odiisusanodii.hashnode.dev·Aug 23, 2024Create Hello World Function - LeetCode: 30 Days of JavaScriptI've been eager to improve my skills in Javascript by solving code challenges. So, I came across "30 Days of JavaScript" on LeetCode, and decided to try it. I have also decided to use this platform to document my journey and also share my solutions. ...Discuss·11 likesJavaScript
DevBitBytedevbitbyte.hashnode.dev·Dec 7, 2023How to write JavaScript find and findLast from scratchfind Returns the first element that satisfies the testing function otherwise returns undefined. Array.prototype._find = function(cbFunction) { for(let i = 0; i < this.length; i++) { if(cbFunction(this[i], i, this)) { return th...DiscussJavascript Mini Challenges & ProjectsfindLast
DevBitBytedevbitbyte.hashnode.dev·Dec 6, 2023How to write JavaScript some and every method from scratchsome Returns true if at least the callback function returns true otherwise false. Array.prototype._some = function(cbFunction) { for(let i = 0; i < this.length; i++) { if(cbFunction(this[i], i, this)) { return true } ...DiscussJavascript Mini Challenges & ProjectsJavaScript
Mayur Patilmayurpatil77.hashnode.dev·Jul 9, 202310 Important JavaScript Coding Interview QuestionsReverse a String: Write a function that takes a string as input and returns the string in reverse order. For example, if the input is "Hello, World!", the output should be "!dlroW ,olleH". Find the Largest Number in an Array: Write a function that t...Discuss·1 like·27 readsJavaScript