디버깅
- 크롬 - 자바스크립트 콘솔
- Bitnami 폴더 --- apache2 - logs - error.log
문자와 숫자 / 변수 / 비교
<?php
$name = "sonyuri";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello world</title>
</head>
<body>
<?php
echo "10"+"10"; // 20
echo "10"."10"; // 1010
echo "Hi, ".$name;
var_dump(1==1);
?>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello world</title>
</head>
<body>
<script>
document.write("10"+"10");
name = "sonyuri";
document.write("Hi, " + name);
document.write(1==1);
</script>
</body>
</html>