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
    
  
  
    
  | async function run() { | |
| let prefix = '(2)' | |
| console.log(prefix + ' with await') | |
| await asyncWithAwait(prefix) | |
| console.log(prefix + ' with promise') | |
| asyncWithPromise(prefix).then(_ => console.log(prefix + ' after all')) | |
| } | |
| run() | 
  
    
      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
    
  
  
    
  | async function run() { | |
| let prefix = '(1)' | |
| console.log(prefix + ' with await') | |
| asyncWithAwait(prefix) | |
| console.log(prefix + ' with promise') | |
| asyncWithPromise(prefix) | |
| console.log(prefix + ' after all') | |
| } | |
| run() | 
  
    
      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
    
  
  
    
  | import React, { useState, useEffect } from "react"; | |
| export default props => { | |
| console.log("componentWillMount"); | |
| console.log("componentWillReceiveProps", props); | |
| const [x, setX] = useState(0); | |
| const [y, setY] = useState(0); | |
| const [moveCount, setMoveCount] = useState(0); | |
| const [cross, setCross] = useState(0); | |
| const mouseMoveHandler = event => { | |
| setX(event.clientX); | 
  
    
      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
    
  
  
    
  | 5 | |
| 3.14 | 
  
    
      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"> | |
| <title>Company page</title> | |
| </head> | |
| <body> | |
| <p>Welcome! Here you can find following things:</p> | |
| <ol> | 
  
    
      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"> | |
| <title>Modal Dialog</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
| </head> | 
  
    
      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"> | |
| <title>Avatar</title> | |
| <style> | |
| .avatar { | |
| border-style: solid; | |
| border-width: 2px; | |
| border-radius: 50%; | 
  
    
      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 appendChildren(decorateDivFunction) { | |
| var allDivs = document.getElementsByTagName("div"); | |
| for (var i = 0, len = allDivs.length; i < len; i++) { | |
| var newDiv = document.createElement("div"); | |
| decorateDivFunction(newDiv); | |
| allDivs[i].appendChild(newDiv); | |
| } | |
| } | |
| // Example case. |