Let's dive in and see a variable in the wild. Here is how you declare a constant variable:
const myName = 'Arya';
console.log(myName);
// Output: Arya
Let's consider the above example:
/* eslint-disable max-len */ | |
declare namespace V2QMM {} | |
declare namespace V2QMM.TYPES { | |
/** | |
* Place holder for ISO DateTime strings. When we can properly extend primitives for custom "brand" types, this should be able to validate | |
* as formatted `yyyy-MM-DD'T'hh:mm:ss'Z"` | |
*/ | |
export type ISODateTime = string; | |
/** |
import {Alert} from 'react-native'; | |
import logger from 'logger'; | |
import * as types from 'auth/constants'; | |
import * as endpoints from 'endpoints'; | |
import * as cache from 'utils/cache'; | |
import {AUTH_STATUS} from 'enums/authStatus'; | |
import * as requester from 'services/Requester'; | |
import {clearSurveys} from 'surveys-ballots/actions'; | |
import {clearEvents} from 'events/actions'; | |
import * as repsActions from 'representatives/actions'; |
process.stdin.resume(); | |
process.stdin.setEncoding('ascii'); | |
var input_stdin = ""; | |
var input_stdin_array = ""; | |
var input_currentline = 0; | |
process.stdin.on('data', function (data) { | |
input_stdin += data; | |
}); |
import React from 'react'; | |
import {View, Text, TouchableOpacity, SafeAreaView} from 'react-native'; | |
import Icon from 'react-native-vector-icons/MaterialIcons'; | |
import {ScaledSheet} from 'react-native-size-matters'; | |
import { | |
v2Colors, | |
v2Fonts, | |
v2InputsPropertiesBlack, | |
v2ButtonStyles, | |
} from 'theme'; |
{"lastUpload":"2019-10-13T03:18:30.028Z","extensionVersion":"v3.4.3"} |
import React, { Component } from "react"; | |
import { reduxForm, Field } from "redux-form"; | |
class Signup extends Component { | |
// bonus | |
// by making method below an arrow function | |
// developer does not have to worry | |
// about binding the context of onSubmit | |
// saves having to call bind(this) somewhere |
import fs from "fs-extra"; | |
import eachSeries from "async/eachSeries"; | |
import { exec } from "child_process"; | |
import { androidDirectory } from "../../app.json"; | |
import { resolveFromRoot, distDir, createLogger } from "../build"; | |
const logger = createLogger("android"); | |
const APK_PATTERN = /release\.apk$/i; |
platform :ios, '9.0' | |
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
abstract_target 'defaults' do | |
# Pods for NFIBEngage | |
pod 'React', :path => '../node_modules/react-native/' | |
pod 'React-Core', :path => '../node_modules/react-native/React' | |
pod 'React-DevSupport', :path => '../node_modules/react-native/React' | |
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook' | |
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' |