- Define a variable
nameof typeStringusingvarorlet - Define a constant
TIMEOUTwith a value of1000 - Create a
userobject with the following propertiesfirstName->StringlastName->Stringage->NumberfullName->functionthat returns the join (concatenation) offirstNameandlastName
- Create an
arraythat has the names of your family members console.logevery item in the family members array (from above) using aforloop- Iterate over the family members array (from above) using the
forEachmethod 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