Сделал таск 4

parent 8ffe643b
...@@ -8,6 +8,16 @@ ...@@ -8,6 +8,16 @@
<body> <body>
<script> <script>
const drinks = ['milk', 'beer', 'beer', 'milk', 'milk']
for(let i = 0; i < drinks.length; i++) {
if(drinks[i] === 'milk') {
console.log('good')
} else {
console.log('bad')
}
}
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment