- Define a variable
name
of typeString
usingvar
orlet
- Define a constant
TIMEOUT
with a value of1000
- Create a
user
object with the following propertiesfirstName
->String
lastName
->String
age
->Number
fullName
->function
that returns the join (concatenation) offirstName
andlastName
- Create an
array
that has the names of your family members console.log
every item in the family members array (from above) using afor
loop- Iterate over the family members array (from above) using the
forEach
method onarray
.
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
class Node { | |
constructor (value, priority) { | |
this.value = value; | |
this.priority = priority; | |
} | |
} | |
class PriorityQueue { | |
constructor () { | |
this.heap = [null]; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://unpkg.com/@reactivex/[email protected]/dist/global/Rx.js"></script> | |
</head> | |
<body> |
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
function HttpUrlBuilder(url) { | |
if (typeof url !== "string") { | |
throw new TypeError(); | |
} | |
this.url = url; | |
this.cleanUrl(); | |
} | |
HttpUrlBuilder.prototype.cleanUrl = function() { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit backupGlobals="false" | |
backupStaticAttributes="false" | |
bootstrap="bootstrap/autoload.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" | |
stopOnFailure="false" |
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
<?php namespace Hotelier\FormValidation; | |
use Illuminate\Validation\Factory as LaravelValidator; | |
abstract class Validator { | |
/** | |
* Laravel's validator instance | |
* | |
* @var Validator |
NewerOlder