Skip to content

Instantly share code, notes, and snippets.

View gabsprates's full-sized avatar
:shipit:
Focusing

Gabriel Prates gabsprates

:shipit:
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
‘Java’ + ‘Script’ // “JavaScript”
‘JavaScript ‘ + 6 // “JavaScript 6”
6 + ‘ JavaScript’ // “6 JavaScript”
2015 + 6 // 2021
+Infinity + (+Infinity) // Infinity
-Infinity + (-Infinity) // -Infinity
4 + 0 // 4
0 - 4 // -4
6 + 4 // 10
5 - 6 // -1
(-0) + 0 // 0
// The `join()` of an empty Array
// always will be an empty string
var foo = new Array() // []
foo.join() // “”
foo.toString() // “”
// If the Array have elements,
// we have an cool string.
var bar = [ 1, 2, 3, 4, 5 ]
var foo = new Object() // {}
foo.toString() // ‘[object Object]’
// Even to object
// that aren't empty
var bar = { lang: ‘js’, y: 94 }
foo.toString() // ‘[object Object]’
{} + {} // “[object Object][object Object]”
({} + {}) // “[object Object][object Object]”
eval(‘{} + {}’) // NaN
eval(‘({} + {})’) // “[object Object][object Object]”
{} + {} // NaN
({} + {}) // “[object Object][object Object]”
eval(‘{} + {}’) // NaN
eval(‘({} + {})’) // “[object Object][object Object]”
{
"perguntas": [
{
"question": "Qual n\u00e3o \u00e9 uma origem do Ingl\u00eas?",
"options": [
"Anglo Sax\u00f4nica",
"Latina",
"Francesa",
"Africana"
],
@gabsprates
gabsprates / .editorconfig
Last active December 19, 2018 21:53
🌐 💻 boilerplate to start a react app
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
atom-clock
atom-typescript
autocomplete-js-import
autocomplete-php
busy-signal
color-picker
editorconfig
file-icons
highlight-selected
intentions