This file contains 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* crossBridge() { | |
const reply = yield 'What is your favorite color?'; | |
console.log(reply); | |
if (reply !== 'yellow') return 'Wrong!' | |
return 'You may pass.'; | |
} | |
{ | |
const iter = crossBridge(); | |
const q = iter.next().value; // Iterator yields question |
This file contains 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
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |