# Latest

**URL:** https://forum.kirupa.com/latest.md?page=93

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 94

---

## [Code Is Not Printing as it Should](https://forum.kirupa.com/t/code-is-not-printing-as-it-should/643996)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 7\
**Last updated:** [August 31, 2020, 12:56am UTC](https://forum.kirupa.com/t/code-is-not-printing-as-it-should/643996 "2020-08-31T00:56:48Z")

</div>

var cars = { colors : \[“black”, “red”\], models : \[“pontiac”, “cadillac”\], year : “1970” }; fill(55, 110, 10); textSize(20); for(cars.year = 1970; cars.year \<= 1980 ; cars.year++) { var y = 25; text("The " + cars…

---

## [Reduce-Accumulator is not working as i understand reduce- Javascript](https://forum.kirupa.com/t/reduce-accumulator-is-not-working-as-i-understand-reduce-javascript/644006)

<div class="topic-metadata">

**Author:** [@Umair\_Ashraf](https://forum.kirupa.com/u/Umair_Ashraf)\
**Replies:** 3\
**Last updated:** [August 30, 2020, 2:51pm UTC](https://forum.kirupa.com/t/reduce-accumulator-is-not-working-as-i-understand-reduce-javascript/644006 "2020-08-30T14:51:05Z")

</div>

I dont understand how the accumulator is working here in this simple reduce function. i understand accumulator is that after each iteration the accumulator value will be passed to the next iteration, i was expecting some…

---

## [Corrections to Chapter 4 "Learning React".](https://forum.kirupa.com/t/corrections-to-chapter-4-learning-react/643331)

<div class="topic-metadata">

**Author:** [@GregB997](https://forum.kirupa.com/u/GregB997)\
**Replies:** 9\
**Last updated:** [August 30, 2020, 2:12am UTC](https://forum.kirupa.com/t/corrections-to-chapter-4-learning-react/643331 "2020-08-30T02:12:08Z")

</div>

Kirupa, I hope this is the place to post corrections to the “Learning React” textbook. I cannot seem to find any specific place to do this, so I’m trying here. The InformIT website does not contain any such capability…

---

## [Out of Sync Async Initialization (Broken Router Part 2)](https://forum.kirupa.com/t/out-of-sync-async-initialization-broken-router-part-2/643995)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 1\
**Last updated:** [August 29, 2020, 5:04am UTC](https://forum.kirupa.com/t/out-of-sync-async-initialization-broken-router-part-2/643995 "2020-08-29T05:04:51Z")

</div>

Not too long ago I wrote about a problem dealing with JavaScript reference variables causing problems in a broken router. The solution was (largely) to fix a Router subclass (RouterSubclass) so that its initialize() sig…

---

## [Difficulty With Object Coding](https://forum.kirupa.com/t/difficulty-with-object-coding/643974)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 8\
**Last updated:** [August 26, 2020, 8:35pm UTC](https://forum.kirupa.com/t/difficulty-with-object-coding/643974 "2020-08-26T20:35:40Z")

</div>

var cars = { colors : \["black","blue","red","yellow"\], style : "sleek", model : "Cadillac", wheels : { tires : "Goodyear", rims : "steel", } }; textSize(25); fill(18, 120, 105); text("Cars…

---

## [Mega Glaze Donut!](https://forum.kirupa.com/t/mega-glaze-donut/643963)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [August 25, 2020, 9:27pm UTC](https://forum.kirupa.com/t/mega-glaze-donut/643963 "2020-08-25T21:27:11Z")

</div>

This sounds absolutely amazing! While it’ll probably knock a few years from my lifespan, what’s the point of living a long life if you can’t enjoy something like this? :stuck\_out\_tongue:

---

## [The Mysteries Never Cease](https://forum.kirupa.com/t/the-mysteries-never-cease/643927)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 7\
**Last updated:** [August 24, 2020, 4:02pm UTC](https://forum.kirupa.com/t/the-mysteries-never-cease/643927 "2020-08-24T16:02:14Z")

</div>

var x = \[100,300,140,20\]; var y = \[20,60,140,100\]; var c = 0; draw = function() { for(c = 0; c \< y.length; c++) { background(255, 0, 204); ellipse(x\[c\],y\[c\],40,40); y\[c\] = y\[c\] + 1; if (y\[c\] \> 420) {y\[c\] = 0;} …

---

## [Broken Router Post-mortem](https://forum.kirupa.com/t/broken-router-post-mortem/643960)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [August 24, 2020, 3:18pm UTC](https://forum.kirupa.com/t/broken-router-post-mortem/643960 "2020-08-24T15:18:56Z")

</div>

Our team has recently been cracking down on the JavaScript errors that have been occuring in our application. Whenever a JS error occurs, we make sure it gets logged into our logging system. Then every week we take a lo…

---

## [Combining Strings and Variables](https://forum.kirupa.com/t/combining-strings-and-variables/643944)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [August 23, 2020, 8:03pm UTC](https://forum.kirupa.com/t/combining-strings-and-variables/643944 "2020-08-23T20:03:58Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/javascript/combining\_strings\_variables.htm

---

## [How To Renew the Cycle](https://forum.kirupa.com/t/how-to-renew-the-cycle/643889)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 10\
**Last updated:** [August 21, 2020, 4:20pm UTC](https://forum.kirupa.com/t/how-to-renew-the-cycle/643889 "2020-08-21T16:20:20Z")

</div>

var xPo = \[20,70,120,170\]; var b = 0; var y = 0; draw = function() { background(224, 224, 168); for(b = 0; b \< xPo.length;b = b + 1) { ellipse(xPo\[b\],y,40,40); y = y + 1; } }; I am fiddli…

---

## [Storing texts + positions in local storage](https://forum.kirupa.com/t/storing-texts-positions-in-local-storage/643878)

<div class="topic-metadata">

**Author:** [@ran09](https://forum.kirupa.com/u/ran09)\
**Replies:** 2\
**Last updated:** [August 18, 2020, 6:30am UTC](https://forum.kirupa.com/t/storing-texts-positions-in-local-storage/643878 "2020-08-18T06:30:21Z")

</div>

Hello Kirupa Thanks for your great site I am NOT a proffesional coder but I can learn and try to adupt to my needs, and I need your help. Now I want to build a tool called Future Wheel https://www.mindtools.com/pages/…

---

## [How to create an executable file](https://forum.kirupa.com/t/how-to-create-an-executable-file/643868)

<div class="topic-metadata">

**Author:** [@hash](https://forum.kirupa.com/u/hash)\
**Replies:** 1\
**Last updated:** [August 14, 2020, 8:26pm UTC](https://forum.kirupa.com/t/how-to-create-an-executable-file/643868 "2020-08-14T20:26:47Z")

</div>

Hi I have an open source code which was designed in React and I am trying find out how to make it into an executable file .exe The instruction which I was giving as following only go so far: 1/ Open cmd 2/ Go to dire…

---

## [No need to always use fixed-width fonts?](https://forum.kirupa.com/t/no-need-to-always-use-fixed-width-fonts/643853)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [August 14, 2020, 3:42am UTC](https://forum.kirupa.com/t/no-need-to-always-use-fixed-width-fonts/643853 "2020-08-14T03:42:02Z")

</div>

This is neat! :grinning:

---

## [Extracting a number from a line that represents a negative value](https://forum.kirupa.com/t/extracting-a-number-from-a-line-that-represents-a-negative-value/643836)

<div class="topic-metadata">

**Author:** [@mikevlk](https://forum.kirupa.com/u/mikevlk)\
**Replies:** 3\
**Last updated:** [August 11, 2020, 12:42pm UTC](https://forum.kirupa.com/t/extracting-a-number-from-a-line-that-represents-a-negative-value/643836 "2020-08-11T12:42:24Z")

</div>

i have a text document that is columnar in nature. one of the columns is up to 7 characters, with the 7th character if present being the dash “-” to represent a negative number. right now i am extracting the 7th charac…

---

## [kirupa.com - Hiding Mouse Cursor After Some Time](https://forum.kirupa.com/t/kirupa-com-hiding-mouse-cursor-after-some-time/399069)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 2\
**Last updated:** [August 11, 2020, 2:16am UTC](https://forum.kirupa.com/t/kirupa-com-hiding-mouse-cursor-after-some-time/399069 "2020-08-11T02:16:42Z")

</div>

by kirupa | 20 March 2011 Have questions? Discuss this Flash / ActionScript tutorial with others on the forums. This is a companion discussion topic for the original…

---

## [What it takes to be a hand model!](https://forum.kirupa.com/t/what-it-takes-to-be-a-hand-model/643814)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 3\
**Last updated:** [August 9, 2020, 6:56pm UTC](https://forum.kirupa.com/t/what-it-takes-to-be-a-hand-model/643814 "2020-08-09T18:56:36Z")

</div>

Every time I think of hand models, though, I am reminded of George from this Seinfeld clip: https://www.youtube.com/watch?v=AoKErz\_HtGA :raised\_hand\_with\_fingers\_splayed:

---

## [Math Operations](https://forum.kirupa.com/t/math-operations/643770)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 4\
**Last updated:** [August 5, 2020, 2:24am UTC](https://forum.kirupa.com/t/math-operations/643770 "2020-08-05T02:24:53Z")

</div>

var deMo = function (a,b,c) { var maTh = a -b \* c; return maTh; }; println(deMo(19,10,2)); //19 - 10 \* 2 = 18 I thought that subtraction takes precedence over multiplication - no ? The println returned…

---

## [touchinglogowillmakeyougoblind.png](https://forum.kirupa.com/t/touchinglogowillmakeyougoblind-png/643749)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 2\
**Last updated:** [August 3, 2020, 6:15am UTC](https://forum.kirupa.com/t/touchinglogowillmakeyougoblind-png/643749 "2020-08-03T06:15:14Z")

</div>

Going through some old files and ran across this golden nugget, an image named touchinglogowillmakeyougoblind.png. I think it was a lie. I had to touch it to share with you all here, but I can still see. The image:

---

## [Comparing objects](https://forum.kirupa.com/t/comparing-objects/643750)

<div class="topic-metadata">

**Author:** [@Woodenshipandironman](https://forum.kirupa.com/u/Woodenshipandironman)\
**Replies:** 4\
**Last updated:** [August 2, 2020, 4:40pm UTC](https://forum.kirupa.com/t/comparing-objects/643750 "2020-08-02T16:40:19Z")

</div>

I’m looking for a function that compares two values. These values may or may not be objects. If they happen to be objects, I expect this function to verify that both objects have the same number of properties and that ea…

---

## [Question about React book. Can I remove li element by another way?](https://forum.kirupa.com/t/question-about-react-book-can-i-remove-li-element-by-another-way/643746)

<div class="topic-metadata">

**Author:** [@AlexGoryushkin](https://forum.kirupa.com/u/AlexGoryushkin)\
**Replies:** 1\
**Last updated:** [August 1, 2020, 11:14pm UTC](https://forum.kirupa.com/t/question-about-react-book-can-i-remove-li-element-by-another-way/643746 "2020-08-01T23:14:26Z")

</div>

Hello! I reading the React book from Kirupa. And now I’m in section 15, about TodoList app. According to the book, Event onClick is used for the li element to remove list items: createTasks(item) { return \<li onClick=…

---

## [Can you help me with this?](https://forum.kirupa.com/t/can-you-help-me-with-this/643724)

<div class="topic-metadata">

**Author:** [@snowman38](https://forum.kirupa.com/u/snowman38)\
**Replies:** 1\
**Last updated:** [July 31, 2020, 9:05pm UTC](https://forum.kirupa.com/t/can-you-help-me-with-this/643724 "2020-07-31T21:05:05Z")

</div>

Hi everyone. I am looking for street details for all of Spain’s cities in the form of a directory. If you are able to point me in the right direction, I would be relieved, as it is imperative that I find this informati…

---

## [Async/Await use in NodesJS and Mysql query](https://forum.kirupa.com/t/async-await-use-in-nodesjs-and-mysql-query/643670)

<div class="topic-metadata">

**Author:** [@Umair\_Ashraf](https://forum.kirupa.com/u/Umair_Ashraf)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 8:32pm UTC](https://forum.kirupa.com/t/async-await-use-in-nodesjs-and-mysql-query/643670 "2020-07-30T20:32:26Z")

</div>

Hi guys, i am a bit confused when using Asyc/await, i am basically retrieving the data from the mysql DB and then use the information when constructing an object user\_details that i will use later. I have defined the A…

---

## [Return Statement Wont Print](https://forum.kirupa.com/t/return-statement-wont-print/643669)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 11\
**Last updated:** [July 27, 2020, 10:34pm UTC](https://forum.kirupa.com/t/return-statement-wont-print/643669 "2020-07-27T22:34:10Z")

</div>

var addNumbers = function(a,b) { var c = a + b; return c; }; addNumbers(4,5); text(“addNumbers”,100,100); why doesn’t this code print out the value of 9 ?

---

## [Beyond small animations](https://forum.kirupa.com/t/beyond-small-animations/643650)

<div class="topic-metadata">

**Author:** [@Woodenshipandironman](https://forum.kirupa.com/u/Woodenshipandironman)\
**Replies:** 5\
**Last updated:** [July 26, 2020, 3:45am UTC](https://forum.kirupa.com/t/beyond-small-animations/643650 "2020-07-26T03:45:51Z")

</div>

I have no background in computer science, I picked up JavaScript from an online tutorial and later from JavaScript: The Good Parts. I have an adequate understanding of the various parts of the language and syntax. I can …

---

## [Street Fighter 1 origin story!](https://forum.kirupa.com/t/street-fighter-1-origin-story/643664)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [July 25, 2020, 3:33pm UTC](https://forum.kirupa.com/t/street-fighter-1-origin-story/643664 "2020-07-25T15:33:38Z")

</div>

Street Fighter is one of my favorite games of all time, so seeing a behind-the-scenes look at the first one is pretty cool! :megaman:

---

## [Creating a bootable USB drive for installing MacOS Big Sur (Beta)!](https://forum.kirupa.com/t/creating-a-bootable-usb-drive-for-installing-macos-big-sur-beta/643651)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 3:02am UTC](https://forum.kirupa.com/t/creating-a-bootable-usb-drive-for-installing-macos-big-sur-beta/643651 "2020-07-24T03:02:48Z")

</div>

Since I run into this all the time and most of the articles I find are filled with ads and unnecessary information, I’ll post this here :stuck\_out\_tongue: First, make sure you have the Big Sur beta downloaded via Softwa…

---

## [JS Tip of the Day: ES2021 Preview](https://forum.kirupa.com/t/js-tip-of-the-day-es2021-preview/643632)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 3:00pm UTC](https://forum.kirupa.com/t/js-tip-of-the-day-es2021-preview/643632 "2020-07-22T15:00:31Z")

</div>

ES2021 Preview Version: ES2021 Level: Beginner This series of JavaScript tips started with a couple of new features that were introduced in ES2020. For this tip, the final tip in the series, we will take a look at a …

---

## [Cookies vs. localStorage vs. sessionStorage](https://forum.kirupa.com/t/cookies-vs-localstorage-vs-sessionstorage/643634)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 5:25am UTC](https://forum.kirupa.com/t/cookies-vs-localstorage-vs-sessionstorage/643634 "2020-07-23T05:25:02Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/hodgepodge/cookies\_local\_session\_storage.htm

---

## [Console Logging an Arrow Function](https://forum.kirupa.com/t/console-logging-an-arrow-function/643633)

<div class="topic-metadata">

**Author:** [@Umair\_Ashraf](https://forum.kirupa.com/u/Umair_Ashraf)\
**Replies:** 3\
**Last updated:** [July 23, 2020, 3:32pm UTC](https://forum.kirupa.com/t/console-logging-an-arrow-function/643633 "2020-07-23T15:32:17Z")

</div>

I am a bit confused with the console output , my understading is that if we write the function name in the console it will display only if there is a return exisit and in this casue it will either display or parsed valu…

---

## [JS Tip of the Day: The Long Arrow Operator](https://forum.kirupa.com/t/js-tip-of-the-day-the-long-arrow-operator/643554)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 10:28am UTC](https://forum.kirupa.com/t/js-tip-of-the-day-the-long-arrow-operator/643554 "2020-07-22T10:28:50Z")

</div>

The Long Arrow Operator Level: Beginner Over the recent years, a lot of attention has been given to arrow functions, a feature introduced in ES2015. And rightfully so; they provide some exciting, new functionality and …

[Previous page](https://forum.kirupa.com/latest.md?page=92)

[Next page](https://forum.kirupa.com/latest.md?page=94)
