Javascript
문자열 연산자 서론에 설명 조금 더하기 //String operator
Linda~!
2020. 3. 10. 09:33
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 |