Skip to content

Instantly share code, notes, and snippets.

@Lenoc
Created May 6, 2015 12:00
Show Gist options
  • Save Lenoc/2a4bb8952cee9714ecc8 to your computer and use it in GitHub Desktop.
Save Lenoc/2a4bb8952cee9714ecc8 to your computer and use it in GitHub Desktop.
Объявите две переменные: admin и name. Запишите в name строку "Василий". Скопируйте значение из name в admin. Выведите admin (должно вывести «Василий»).
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'>
</head>
<body>
<script>
var admin, name;
name = 'Василий';
admin = name;
alert(admin);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment