화면 4. Polypad.correct [sink]
원본: Computation Layer 문서(Polypad) · Try It (원본 화면)
| 화면 번호 | 4 / 9 |
|---|
| 문서 항목 설명 (원문) | correct Sets a Boolean value that determines whether or not a gray checkmark is displayed for the student's screen in the dashboard's summary view. |
|---|
1. 화면 캡처 (빨간 번호 = 아래 표의 번호)
화면에 적힌 영어 문구(원문):
- Match each shape to its name.
2. CL이 입력된 곳
코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.
| 번호 | 이름 | 종류 | CL 코드 원문, 번역, 설명 |
| 1 | 레이블 없는 Polypad | 일부화면 POLYPAD | triangleCorrect = this.value("triangleCorrect")
▶ 변수 triangleCorrect는 this.value("triangleCorrect")로 한다.
this는 이 구성요소(Polypad)이다.
squareCorrect = this.value("squareCorrect")
▶ 변수 squareCorrect는 this.value("squareCorrect")로 한다.
pentagonCorrect = this.value("pentagonCorrect")
▶ 변수 pentagonCorrect는 this.value("pentagonCorrect")로 한다.
# Sets the screen's "correct" sink to "true" if
# the student has matched all three shapes correctly.
▷ 학생이 세 도형을 모두 올바르게 짝지었으면 화면의 "correct" sink를 "true"로 정한다.
correct: triangleCorrect and squareCorrect and pentagonCorrect
▶ Polypad의 정답 조건(correct)은 세 변수(triangleCorrect, squareCorrect, pentagonCorrect)가 모두 참일 때 참으로 한다.
and는 둘 다 참이어야 참이다.
|