Apedia

Operand Making Anki Cards Programming Turn Prose Code

When making Anki cards for programming, turn prose into code, testing out functions like the add (+) operator in JavaScript yourself.

Al crear tarjetas Anki para programación, convierte la prosa en código, probando tú mismo las funciones como el operador de suma en JavaScript.

Text When making anki cards for programming:

Turn prose into code.

If you're learning JavaScript, you come across this information:

“The add (+) operator... if only one operand is a string, the other operand is converted to a string and the result is the concatenation of the two strings.”

You test this out yourself, play around with it, and find out that 1 + '1' is '11'. So you make a flashcard to remember this fact:
Extra
Sometimes write an explanation.

Tags: anki

Learn with these flashcards. Click next, previous, or up to navigate to more flashcards for this subject.

Next card: Array var trick cards future creates empty length

Previous card: Cool making anki cards programming save tricks find

Up to card list: Obscure but useful english vocab, logical fallacies and CBT