1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h3>문자열 연산</h3><hr>
<script>
document.writeln("abc"+23+"<br>");
document.writeln("35"+23+"<br>");
document.writeln(35+23+"abc"+"<br>"); //순서유의
s1 = "aaa";
s2 = "bbb";
document.writeln((s1==s2)+"<br>");
document.writeln((s1!==s2)+"<br>");
</script>
</body>
</html>
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
'Javascript' 카테고리의 다른 글
switch문 (0) | 2020.03.10 |
---|---|
제어문 - 선택문 - if, else if, else (+예시 학점 매기기, 월 계절 맞추기) (0) | 2020.03.10 |
함수들 - alert() prompt() confirm() (0) | 2020.03.09 |
조건 연산자(삼항연산자) 조건? true:false (0) | 2020.03.09 |
비교 연산자, 논리 연산자 // Comparison operator, Logical operator (0) | 2020.03.09 |