Skip to content

Instantly share code, notes, and snippets.

View Roner1k's full-sized avatar
🏠
Working from home

Nikolay Roner1k

🏠
Working from home
View GitHub Profile
<div class="task5">
<form class="task5-form">
<label for="groups">Group:</label>
<select name="groups" id="groups">
<option value="0">Group 1</option>
<option value="1">Group 2</option>
</select>
<label for="lessons">Lesson:</label>
<select name="lessons" id="lessons">
@Roner1k
Roner1k / radiobutton_check.js
Last active April 30, 2020 16:33
add hidden radio buttons with Value=1 and default check in yours html
// 9
function Ninth() {
let question1Value = +document.querySelector('input[name="que1"]:checked').value,
question2Value = +document.querySelector('input[name="que2"]:checked').value,
question3Value = +document.querySelector('input[name="que3"]:checked').value,
result;
if (question1Value === 1 || question2Value === 1 || question3Value === 1) {
modalo();
let n = 10;
function count(n) {
// for(let i = 1; i <= n; i++){
// console.log(`Ввожу число ${i}`)
// };
if(n--){
console.log(`Выводим N: ${n}`)
count(n);
}