Сделал таск 4

parent 8ffe643b
......@@ -8,6 +8,16 @@
<body>
<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>
</body>
</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