편집 기록

편집 기록
  • 프로필 편집요청빌런님의 편집
    날짜2020.02.05

    SyntaxError: expected expression, got '}'


    유다시티로 자바스크립트 학습중에 있습니다.

    while문으로 작성하는 문제입니다.

    이미지

    다음을 출력해야하며, 제가 짠 코드는

    var num = 99;
    
    while (num>=1) {
       console.log(num +" bottles of juice on the wall! " + num +" bottles of juice! Take one down, pass it around... "+(num -1) + " bottles of juice on the wall!");
       }
       num = num-1;
    }
    
  • 프로필 알 수 없는 사용자님의 편집
    날짜2020.02.05

    자바스크립트 오류 질문있습니다.


    유다시티로 자바스크립트 학습중에 있습니다.

    while문으로 작성하는 문제입니다.

    이미지

    다음을 출력해야하며, 제가 짠 코드는

    var num = 99;
    
    while (num>=1) {
       console.log(num +" bottles of juice on the wall! " + num +" bottles of juice! Take one down, pass it around... "+(num -1) + " bottles of juice on the wall!");
       }
       num = num-1;
    }