This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('It should create correct scope and use let for declaration', (t) => { | |
// Expect two assertions | |
t.plan(2); | |
// let Declaration (Outer Scope) | |
let a = 2; | |
// Create inner scope using brackets | |
{ | |
// let Declaration (Inner Scope) | |
let a = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 2; | |
(function IIFE() { | |
var a = 3; | |
console.log(a); // 3 | |
})(); | |
console.log(a) // 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = [1,2,3]; | |
var obj = { | |
foo // means `foo: foo` | |
}; | |
obj.foo; // [1,2,3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Nike Tennis App | |
* https://stash.akqa.net/projects/NYTECHINT/repos/react-native-nike-tennis-app/browse | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react-native'); | |
var globalStyles = require('../../styles/global'); | |
var buttons = require('../../styles/buttons'); | |
var forms = require('../../styles/forms'); | |
var Icon = require('react-native-vector-icons/Ionicons'); | |
var Dimensions = require('Dimensions'); | |
var {width, height} = Dimensions.get('window'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react-native'); | |
var globalStyles = require('../../styles/global'); | |
var Icon = require('react-native-vector-icons/Ionicons'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
Image, | |
View, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react-native'); | |
var { | |
AppRegistry, | |
Image, | |
ListView, | |
ListViewDataSource, | |
} = React; | |
var data = [{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react-native'); | |
var AnimationExperimental = require('AnimationExperimental'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
ListView, | |
ListViewDataSource, | |
TouchableHighlight, | |
Text, |