'what did I do wrong when uploading my code in my previous post?'
Maybe nothing at all. Formatting of code inside Html form TextArea element can be a bit tricky for the browser parser. There have been a few hiccups I've seen.
Thank you for being pro-active and including your snippet. It might be that the three trailing back-ticks need to be on a separate line, or a blank line separating, both leading and ending, the ticks and the included code block.
i.e. blank line, three ticks, blank line, code block, blank line, three ticks, blank line
Would you mind posting the link to the tutorial used, as I'm not able to locate what is being spoken about. Thanks
' as to why the example given in the puck tutorial has an "a" followed by "A"'
IMO the example demonstrates how to structure the callback within the tap() function, and is using a modifier to demonstrate how to capitalize a letter. Most likely the same one is used to show capitalization with the least confusion.
The behind the scenes Javascript - See file end for tap() function
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sun 2019.03.24
Maybe nothing at all. Formatting of code inside Html form TextArea element can be a bit tricky for the browser parser. There have been a few hiccups I've seen.
Thank you for being pro-active and including your snippet. It might be that the three trailing back-ticks need to be on a separate line, or a blank line separating, both leading and ending, the ticks and the included code block.
Would you mind posting the link to the tutorial used, as I'm not able to locate what is being spoken about. Thanks
EDIT
I believe this might be the link:
If so,
IMO the example demonstrates how to structure the callback within the
tap()
function, and is using a modifier to demonstrate how to capitalize a letter. Most likely the same one is used to show capitalization with the least confusion.The behind the scenes Javascript - See file end for
tap()
functionThe reference
While I defer a definitive answer to others, it might be that
beneath heading "Low Level control" (first link following EDIT above)
and the
tap()
function only specify an array of 8 values. This might explain why the seventh gives the surprise that is witnessed.