🦲
mind
  • cleber's mind
  • plans
    • fact checking
    • personal assistant
  • self-management
    • agenda and tasks
    • mails and emails
  • knowledge
    • career
    • programming
      • Big O Notation
      • browsing data
      • C/C++
      • databases
      • eclipse
      • gradle
      • java
        • apache camel
      • javascript
      • naming convention
      • mysql
      • prolog
      • regex
      • REST
      • ssl/tls
      • version control
        • git commands
      • web-semantics
      • wot
    • research
      • mas
      • planning
      • math
        • probability
      • machine learning
      • nlp
      • speech recognition
      • data sources
      • data visualisation
    • it
      • asterisk
      • containers
        • installing docker
        • deploying busybox
        • deploying a sample
        • deploying node-red
        • deploying from the hub
      • clusters
        • installing kubernetes
        • deploying bootcamp
        • deploying nginx
        • deploying jacamo-rest
        • grafana
      • deploy
        • heroku
      • linux
        • tmux
        • vim
        • startup
      • networks
      • pdf
        • ssh
    • productivity
    • language
      • expressions
        • nice signposts
        • linking expressions
      • latex
      • scientific
      • writing
    • sailing
    • financial
      • assets
    • emergency
    • out of boxes
  • teaching
    • eletrônica digital
      • Conversão decimal para binário
      • Conversão binário para decimal
      • Sinais analógicos vs digitais
    • programação I
    • cabeamento estruturado
  • moments
    • insightful ai facts
    • ai4industry-hackathon
    • previous activities
  • brasil
  • external links
    • personal webpage
    • my github
Powered by GitBook
On this page
  • MERN Stack
  • Context and scope tricks

Was this helpful?

  1. knowledge
  2. programming

javascript

Previousapache camelNextnaming convention

Last updated 2 years ago

Was this helpful?

This is a very useful article showing equivalents.

I want to try to improve my JavaScript coding.

Something I have to improve in JS is the way to debug code. Maybe this can be useful.

A snippet to . It is useful in situations in which we have multiple calls of a function but it is important to avoid flooding which may stress the system and give some undesired visual outcomes.

MERN Stack

  • MongoDB: A document-based (no-sql) open source database

  • Express: A web application framework for Node.js

  • React: A JavaScript front-end library

  • Node.js: A JavaScript runtime environment

Mongoose: A schema-based solution to model application data

Context and scope tricks

A few commands that can run directly on a browser console that shows how JS context and scope can be trick, specially for whom is familiar with other languages like Java and C++.

var obj={foo:function(){console.log(this);}}; obj.foo(); //{foo: f}
var obj={foo:()=>{console.log(this);}}; obj.foo(); //Window{0: global, ...}
var name="bob"; function foo(){return name;}; console.log(foo()); //bob
var name="bob"; foo=()=>{return name;}; console.log(foo()); //bob
function foo(){var name="bob";}; foo(); console.log(name); //undefined
foo=()=>{var name="bob";}; foo(); console.log(name); //undefined
how to replace jquery code by plain javascript
jslint
article
avoid function call flooding