From 1f3e81a4d390e6cdd0edd410abd3c22bb7b0998b Mon Sep 17 00:00:00 2001 From: hariyono <onnelikrio@gmail.com> Date: Sat, 10 Dec 2022 11:34:54 +0700 Subject: [PATCH 1/4] Add Anonymous Function to Alert "hello world" Add Function Alert "hello world" when browser is loaded "Add Alert in file index.html in script" --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index 086e034..18970bd 100644 --- a/index.html +++ b/index.html @@ -188,6 +188,11 @@ <h2>Want to Contribute?</h2> ga('create', 'UA-53476440-1', 'auto'); ga('send', 'pageview'); + + + (function(){ + alert("Hallo world"); + })() </script> </body> From e0f46a23004b35e54221e4e0a9de7dc984d3d6a5 Mon Sep 17 00:00:00 2001 From: hariyono <onnelikrio@gmail.com> Date: Sun, 11 Dec 2022 10:32:09 +0700 Subject: [PATCH 2/4] Add Class Person Adding Class Person to object refrence Fix Case #01 --- Person.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Person.cs diff --git a/Person.cs b/Person.cs new file mode 100644 index 0000000..1a61cfa --- /dev/null +++ b/Person.cs @@ -0,0 +1,19 @@ +public class Person +{ + public string FirstName {get; set;} + public string LastName {get; set;} + public double Age {get; set;} + public string Address {get; set;} + + public Person( + string firstname, + string lastname, + double age, + string address) + { + this.FirstName = firstname; + this.LastName = lastname; + this.Age = Age; + this.Address = address; + } +} From ff28ed9f017984aacec28d8385cd5cd8b451141e Mon Sep 17 00:00:00 2001 From: hariyono <onnelikrio@gmail.com> Date: Wed, 14 Dec 2022 10:07:09 +0700 Subject: [PATCH 3/4] Add Method override ToString to get fullname --- Person.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Person.cs b/Person.cs index 1a61cfa..0a9e774 100644 --- a/Person.cs +++ b/Person.cs @@ -16,4 +16,6 @@ public Person( this.Age = Age; this.Address = address; } + + public override string ToString() => String.Join(' ', this.FirstName, this.LastName); } From 35fcbdfea7c64858f4ed259cbae5d5495373936d Mon Sep 17 00:00:00 2001 From: hariyono <onnelikrio@gmail.com> Date: Thu, 15 Dec 2022 08:38:47 +0700 Subject: [PATCH 4/4] update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 34960cc..dc48647 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,5 @@ If you've got a Fork-n-Go style project, [add it to the site](https://github.com --- ### License: [BSD](license.md) +### I am a junior developer +### I am a hero