2018 is the year I want to get back to coding on a regular basis.
Time to dust off my laptop and get cranking at it!
seen from India
seen from Malaysia
seen from Germany

seen from United Kingdom
seen from United States

seen from Maldives
seen from Türkiye
seen from United States

seen from United States

seen from Maldives

seen from Malaysia
seen from China
seen from China

seen from T1
seen from T1
seen from Australia

seen from Maldives

seen from United States

seen from India

seen from United States
2018 is the year I want to get back to coding on a regular basis.
Time to dust off my laptop and get cranking at it!
js: reverse array without reverse method
LHS += RHS
this actually means LHS = LHS + RHS
i don’t know how this makes sense. but apparently. this is what happens.
so basically, since counter = ‘’, it will just be equals to arrayValue[i] and return arrayValue[i]. apparently, counter = 0 does not work, because it will just sum up the array and return 15 instead of 54321. strange, but i guess figuring out can be for another day.
#painsofselflearning
//////////////
var arrayValue = [1, 2, 3, 4, 5];
var counter = '';
function reverseArray (array) {
// arrayValue[4] returns 5, array[0] returns 1, decrease by 1
for (var i = arrayValue.length - 1; i >= 0; i--) { counter += arrayValue[i]; };
return counter; };
console.log (reverseArray(arrayValue));
///////////////
Github 101
Finally learnt how to setup & use github today to do version controlling!
1. Navigate to current directory using cd command
2. Create a .git file using git init
3. Add files to be committed using git add (file name here)
4. Commit files using git commit -m “insert message here”
5. Add a remote origin online repo and connect it locally using git remote add origin https://github.com/username/myproject.git. to check if git remote is set up, use git remote -v
5. Push files using git push.
10 pomodoros, Fire!
Today was very productive day! I work 10 pomodoros, it's almost close to my daily goal 12 pomodoros, but I have never so much time in a day :) I try to balance my interests and at the same time be a good wife.
Achievements of the day: 1. Wrote third method of sorting. Sorting strings for their length. 2. Rewrote my app, so I can get some arguments from application and sort data (String or int) depending on the selected sorting method. 3. Continue refactoring my code.