Difference Between Regular Functions and Arrow FunctionsWhat are Regular Functions and Arrow Functions? Regular Function A regular function (function expression) is a traditional way to write functions. (Check out my other blog post to learn more about function declarations and functions expression!) co...2 min read·ayatakamura.hashnode.dev1AApr 27, 2022
Difference Between Function Expression and Function DeclarationWhat is a Function Declaration? According to the MDN docs, "the function declaration (function statement) defines a function with the specified parameters". function addNums(a, b) { return a + b; } console.log(addNums(5, 6)); //11 What is...1 min read·ayatakamura.hashnode.devApr 27, 2022
How To Reverse a String (JavaScript)I came across this task in a Palindrome Problem on LeetCode. In this article, I will explain how to reverse a string. How To Reverse a String const string = "abcdefg"; const reversed = string.split('').reverse().join(''); console.log(reversed) //gfe...2 min read·ayatakamura.hashnode.devMar 2, 2022
JavaScript reverse() Method Explained!I recently learned a very simple yet powerful JavaScript method - reverse! How It Works The reverse() method reverses an array in place. The reverse() method is destructive and changes the original array. const original = ["a", "b", "c"]; const rever...1 min read·ayatakamura.hashnode.devMar 1, 2022
JavaScript Error Handling 1"Uncaught SyntaxError: Cannot use import statement outside a module" and "net::ERR_ABORTED 404 (Not Found)"1 min read·ayatakamura.hashnode.devNov 10, 2021