<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: KazuchikaYanagi</title>
    <description>The latest articles on DEV Community by KazuchikaYanagi (@kazuchikayanagi).</description>
    <link>https://dev.to/kazuchikayanagi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1460141%2F0319f1c7-1c36-4903-8895-e0a9a0598242.jpg</url>
      <title>DEV Community: KazuchikaYanagi</title>
      <link>https://dev.to/kazuchikayanagi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kazuchikayanagi"/>
    <language>en</language>
    <item>
      <title>JavaScript functions</title>
      <dc:creator>KazuchikaYanagi</dc:creator>
      <pubDate>Thu, 08 Aug 2024 06:48:31 +0000</pubDate>
      <link>https://dev.to/kazuchikayanagi/javascript-functions-lln</link>
      <guid>https://dev.to/kazuchikayanagi/javascript-functions-lln</guid>
      <description>&lt;p&gt;🔍 &lt;strong&gt;Understanding JavaScript Functions&lt;/strong&gt; 🔍&lt;br&gt;
JavaScript offers multiple ways to define functions, each with its unique features and use cases. Let's explore the differences between anonymous functions, regular functions, and arrow functions.&lt;/p&gt;

&lt;p&gt;✨ &lt;strong&gt;Conclusion&lt;/strong&gt; ✨&lt;br&gt;
Understanding the differences between anonymous functions, regular functions, and arrow functions in JavaScript can greatly enhance your coding efficiency and clarity. Each type has its strengths and specific scenarios where it shines, making them versatile tools in a developer's toolkit.&lt;/p&gt;

&lt;p&gt;📚 &lt;strong&gt;Background&lt;/strong&gt; 📚&lt;br&gt;
In the world of JavaScript, functions are a core building block, and knowing when and how to use each type can make your code more effective and maintainable. Whether you're a beginner or an experienced developer, mastering these function types is crucial for writing clean and efficient JavaScript code.&lt;/p&gt;

&lt;p&gt;🌀 &lt;strong&gt;Anonymous Functions&lt;/strong&gt; 🌀&lt;br&gt;
Anonymous functions are functions without a name. They are often used as arguments to other functions or immediately invoked function expressions (IIFE).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;anonFunction&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;This is an anonymous function&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="nf"&gt;anonFunction&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When to use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Useful in callback scenarios, like event handlers or array methods (&lt;em&gt;map&lt;/em&gt;, &lt;em&gt;filter&lt;/em&gt;).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Good for creating functions on the fly without the need for reuse elsewhere in the code.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🔧 &lt;strong&gt;Regular Functions&lt;/strong&gt; 🔧&lt;br&gt;
Regular functions are the standard way to declare functions in JavaScript using the &lt;em&gt;function&lt;/em&gt; keyword. They can be named or anonymous.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;regularFunction&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;This is a regular function&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;regularFunction&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When to use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Ideal for defining functions that need to be reused throughout your code.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Supports hoisting, meaning they can be called before their declaration in the code.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🏹 &lt;strong&gt;Arrow Functions&lt;/strong&gt; 🏹&lt;br&gt;
Arrow functions provide a concise syntax for writing functions and have a lexical &lt;em&gt;this&lt;/em&gt; binding, which means they do not have their own &lt;em&gt;this&lt;/em&gt; context.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;arrowFunction&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;This is an arrow function&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="nf"&gt;arrowFunction&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When to use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Perfect for short functions and for scenarios where this context needs to be inherited from the parent scope.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Commonly used in functional programming patterns and as callbacks due to their succinct syntax.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🚀 &lt;strong&gt;Choosing the Right Function Type&lt;/strong&gt; 🚀&lt;br&gt;
Each function type in JavaScript serves different purposes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Anonymous functions: Use for inline, one-time-use scenarios.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Regular functions: Use for functions that need to be reusable and benefit from hoisting.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Arrow functions: Use for short, concise functions, especially when dealing with this context from the surrounding scope.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By understanding these differences, you can write more efficient and readable JavaScript code.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>1st week of WAD Blog</title>
      <dc:creator>KazuchikaYanagi</dc:creator>
      <pubDate>Thu, 02 May 2024 18:35:05 +0000</pubDate>
      <link>https://dev.to/kazuchikayanagi/1st-week-of-wad-blog-b8g</link>
      <guid>https://dev.to/kazuchikayanagi/1st-week-of-wad-blog-b8g</guid>
      <description>&lt;p&gt;Hello, there!&lt;br&gt;
I am Kazu😀 This is my 1st blog. My co-op program, WAD course at CICCC in Vancouver, Canada has kicked off since April 29th. I am excited to start my new journey from now on! I would be grateful if you read the entire this blog and give me any feedback. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Myself&lt;/strong&gt;&lt;br&gt;
I am a Japanese and 27 years now. I was born in Nagano, my mom's hometown and raised in Gumma. My hometown, Gumma is located 2 above from Tokyo geographically. Gumma is so countryside that most of people there have their own car. Also, local bus comes to bus stop every 2 hours. That is why the way people get to somewhere is basically not transportation but their car. However, my hometown has not only negative aspects but also positive ones. As one of good points, there is Kusatsu onsen, which is included as one of top 3 famous hot spring in Japan(*1). Further, we have good relationship with local people. Neighborhood around my place is so nice that they gift foods such as fresh fruits, fresh vegetables and stuff to us and vice versa.&lt;br&gt;&lt;br&gt;
Next, I will introduce what I like to do.&lt;br&gt;
Here is my like.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Table tennis🏓 (I had been playing table tennis about for 10 years!)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Listening music🎧 (My favorite bands are Mrs. green apple and King gnu(They are all J-pop bands))&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Driving🚘 (I can't wait for driving in Canada!)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cafe☕️ (I love getting relaxed and enjoying their vibe!)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When it comes to studying English, I have ever been in the Philippines twice and in Australia.&lt;br&gt;
Before coming here, I had been working at IT company for 2 years and half in Japan. My main work was trouble shooting on tele-communication problem, Web application tester and redundancy environment creation with OpenShift. &lt;br&gt;
There is 2 main reasons why I made up my mind to study WAD course in Vancouver. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;career change to be front-end developer. &lt;/li&gt;
&lt;li&gt;age limitation of working holiday visa of Canada
First, when I had been working at previous company, I had been considering if I can work this job until retirement. I started coding to know what coding is like so that I have expectation that I might find what I want to do through many challenge. I felt fun when I could had created quite similar sample landing page by HTML and CSS. In particular, I was delighted being able to create by myself(*2). Since then, I . Second, I would like to work at different environment so that I only have work experience in Japan. 
Second, Japanese can use working holiday visa up to 30 years(31 years is also okay if they applied for it before being 31 years). Considering to using working holiday visa, It is possible for me to live in Canada up to 3 years(2 years: co-op program + 1 year: working holiday visa). Currently, I will turn to be 28 this year. To be honest, I am not sure if I will use it for living longer. But I think it is normal for people to take a good way.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr4qcxndq903mhcbgbvsf.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr4qcxndq903mhcbgbvsf.jpeg" alt="Image description" width="275" height="183"&gt;&lt;/a&gt;((*1)Kusatsu onsen)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjuamhzie326pf8k55xg6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjuamhzie326pf8k55xg6.png" alt="Image description" width="800" height="452"&gt;&lt;/a&gt;((*2)This is the first LP I created by myself!)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your expectations for this course&lt;/strong&gt;&lt;br&gt;
My expectations for this course is to be able to catch up modern tech skills and to know what kind of skills companies in Vancouver demand for candidates through this course.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How was your experience with the course for 1st week?&lt;/strong&gt;&lt;br&gt;
To be frank, I am not still used to studying in new environment, classmates and different building. However, it is good for me to learn knowledge about what network is like, what kind of mechanic parts are embedded in laptop and etc. I will try to keep up with my class.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you want to achieve after this course?&lt;/strong&gt;&lt;br&gt;
I would like to acquire programming ability to the point where I can convert my idea into an application. At the least, I would like to create one application as I can introduce about it confidently. &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
