Skip to main content

Posts

诡异的房子,里面比外面多出一米五的空间,女儿开门出来却消失了

the man blackened by death

动物们的迷惑行为,你能忍住不笑吗?

人类们的尴尬瞬间,你能忍住不笑吗?

大内密探零零发中的金像奖戏份

About the Little Lemon receipt maker exercise

 My homework and exercise of the lesson "About the Little Lemon receipt maker exercise" of the class "programming with Javascript" on coursera. const menu = [     {         Dish : "Italian pasta" ,         price : 9.55     },     {         Dish : "Rice with veggies" ,         price : 8.65     },     {         Dish : "Chicken with potatoes" ,         price : 15.55     },     {         Dish : "Vegetarian Pizza" ,         price : 6.45     } ]; function receiptMaker ( arr , bool ) {     if ( bool == false )     {         console . log ( "Prices without tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (incl.tax):$ ${ element . price } ` );                     });     }     else     {         console . log ( "Prices with 20% tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (inc

Write a React Component from Scratch

  // Change code below this line class   MyComponent   extends   React . Component  {    constructor ( props ) {      super ( props );   }    render () {      return  (        // The JSX code you put here is what your component will render       < div >< h1 > My   First   React   Component !</ h1 ></ div >     );   } }; ReactDOM . render (< MyComponent  />, document . getElementById ( 'challenge-node' ));