首頁 > web前端 > js教程 > 主體

[Flatiron SE] Day 24

PHPz
發布: 2024-08-29 11:07:32
原創
851 人瀏覽過

[Flatiron SE] Day 24

Howdy y'all, Feesh here,

This will just be my first ever blog post! I am doing this from the request of my amazing instructor over at Flatiron School. I will be attempting to make a blog post each day documenting my development through my coding journey. And HELLO and WELCOME and employers reading this in the future!

Now I need to be honest, this is not actually my "first day" of flatiron. I actually started two days ago on Monday. But I believe today was absolutely the day where I really got invested in what I am learning.

Speaking of, lets get into what I learned today! I wont be going over everything, just the things that intrigued me the most.

Event Listeners

I officially learned about JavaScript's most exciting feature... EVENT LISTENERS. My original language I was learning before this was C# which shares some similarity's, but really helped me understand the concept better. Lets take two examples so I can explain what I mean with a simple keydown for both Java and C#.

JavaScript

addEventListener("keydown", (event) => {});

onkeydown = (event) => {};
登入後複製

C#

void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            Debug.Log("space key was pressed");
        }
    }
登入後複製

Now looking at both of them I can start to see the difference between them. Like how C# needs a constant update to look for commands while Java does not, quite interesting.

Work Place Practice

One of the more smaller things I enjoyed doing today was practicing how a workspace job would go. I was giving a website with a form and submit button. And I was basically told...

As a user, I should be able to type a task into the input field.
As a user, I should be able to click some form of a submit button.
As a user, I expect to see the task string that I provided appear in the DOM after the submit button has been activated.

And I had to adapt and make theses requests with the skills I learned prior. Very exciting!

But that's about everything I felt was unique to my learning journey. Thank you to the folks at Flatiron for the great opportunity. See yall tomorrow ?

以上是[Flatiron SE] Day 24的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:dev.to
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
作者最新文章
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!