Skip to content

Conversation

@HodaeSsi
Copy link
Member

No description provided.

Copy link

@leaf-upper leaf-upper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생많이하셨습니다!

<textarea cols="15" rows="1" class="outputNum" readonly>0</textarea>
<br>
<br>
<input type="button" value="+" class="increaseButton">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

html태그속성들을 전부 id값이 아닌 class로 한 이유가 궁금합니다!



function decreaseButtonAction(e){
var temp = textarea_outputNum.textContent;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변수명을 temp, temp2가 아닌 좀 더 의미가 분명한 변수명을 써주셨으면 좋겠습니다

@@ -0,0 +1,58 @@
const textarea_outputNum = document.querySelector("textarea.outputNum");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

querySelector는 어떤 방식으로 dom에 객체를 요청하는지 궁금합니다!

<meta charset = "utf-8">
</head>
<body>
<!-- <p>0</p> -->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사용하지 않는 코드는 제거해주세요

<input type="button" value="-" class="decreaseButton">
<br>
<br>
<p style="display:inline">step</p >

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

span 태그를 사용하지는 것이 더 적합한 것 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants