--userNumber = ((prompt(`Каков результат умножения: ${firstNumber} * ${secondNumber} ?`)));
--if (result == userNumber) {
--console.log(result)
--} else {
++do {
-- userNumber = ((prompt(`Каков результат умножения: ${firstNumber} * ${secondNumber} ?`)));;
++ userNumber = +prompt(`Каков результат умножения: ${firstNumber} * ${secondNumber} ?`);
--}
++} while (result !== userNumber);
++console.log(result)';
const { Client, Intents } = require('discord.js');
const robot = new Discord.Client({ intents: [Discord.Intents.FLAGS.GUILDS] });
An HTMLCollection in the HTML DOM is live; it is automatically updated when the underlying document is changed.
--let childrens = output.children;
++let childrens = [...output.children];
--for(let i = 0; i < childrens.length; i++){
-- childrens[i].remove();
++while (childrens.length > 0) {
++ childrens[0].remove();
--let childrens = output.children;
--for(let i = 0; i < childrens.length; i++){
-- childrens[i].remove();
--}
++output.innerHTML = '';
++$data = '{"counter":{"mirrors2":[{"site":"test.example.com"},{"site":"test2.example.com"},{"site":"test3.example.com"},{"site":"test4.example.com"},{"site":"test5.example.com"}]}}';
$headers = [
"Host: api-metrika.yandex.net",
"Authorization: OAuth $TOKEN_VAR",
"Content-Type: application/x-yametrika+json",
++ "Content-Length: " . strlen($data),
];
--$data = '{"counter":{"mirrors2":[{"site":"test.example.com"},{"site":"test2.example.com"},{"site":"test3.example.com"},{"site":"test4.example.com"},{"site":"test5.example.com"}]}}';
const API_KEY = 'AIzaSyCYYb9Zt3681daQpJ7fvsU-Tm-x_o9rKIkzc';
const API_URL = 'https://maps.googleapis.com/maps/api/geocode/json?';
function makeUrl({ coords }) {
return `${API_URL}latlng=${coords.latitude},${coords.longitude}&key=${API_KEY}&language=en`;
}
export const getGeo = () => {
if ('geolocation' in navigator) {
navigator.geolocation.getCurrentPosition(makeUrl);
} else {
console.log("Geolocation is not supported by this browser.");
}
}
The SIP server DHCP option carries either a 32-bit (binary) IPv4 address or, preferably, a DNS (RFC 1035 [6]) fully-qualified domain name to be used by the SIP client to locate a SIP server.