function checkInput(i) {
i = Number(i);
function makeColorString (r, g, b) {
var bgValue = 'rgb(' + i + ', ' + g + ', ' + b + ')';
return(bgValue);
console.log (i + b);
console.log ('Вы определили насыщенность цвета как ' + i);
}
return i
}
<label><input type="radio" value="1" data-link='.tabs1' name="rad" class="rad" checked/> Один</label>
<label><input type="radio" value="2" data-link='.tabs2' name="rad" class="rad" /> Два</label>
<label><input type="radio" value="3" data-link='.tabs3' name="rad" class="rad" /> Три</label>
<label><input type="radio" value="4" data-link='.tabs4' name="rad" class="rad" /> Четыре</label>
<div class="newtabs">
<div class="tabs tabs1">111111111111</div>
<div class="tabs tabs2">222222222222</div>
<div class="tabs tabs3">333333333333</div>
<div class="tabs tabs4">444444444444</div>
</div>
<script>
$('.rad').on('change', function() {
$('.tabs').hide();
$($(this).data('link')).show();
});
</script>
dialog.showModal is not a function
var a = [[1, -9, -14], [5, -2, 16]];
var d = a[0][0] * a[1][1] - a[0][1] * a[1][0];
var x = (a[0][2] * a[1][1] - a[0][1] * a[1][2]) / d;
var y = (a[0][0] * a[1][2] - a[0][2] * a[1][0]) / d;
console.log(x, y);
1. Let V be undefined.
2. Perform ? CreatePerIterationEnvironment(perIterationBindings).
3. Repeat,
a. If test is not [empty], then
i. Let testRef be the result of evaluating test.
ii. Let testValue be ? GetValue(testRef).
iii. If ToBoolean(testValue) is false, return NormalCompletion(V).
b. Let result be the result of evaluating stmt.
c. If LoopContinues(result, labelSet) is false, return Completion(UpdateEmpty(result, V)).
d. If result.[[Value]] is not empty, set V to result.[[Value]].
e. Perform ? CreatePerIterationEnvironment(perIterationBindings).
f. If increment is not [empty], then
i. Let incRef be the result of evaluating increment.
ii. Perform ? GetValue(incRef).