var taxi = {
make: "Webville Motors",
model: "Taxi",
year: 1955,
color: "yellow",
passengers: 4,
convertible: false,
mileage: 281341
};
//здесь нет значения car. Здесь сказано, что то, что будет передано в функцию, внутри будет называться car.
//Важно помнить, что это не вызов функции, а только объявление ее
function prequal(car) {
if (car.mileage > 10000) {
return false;
} else if (car.year > 1960) {
return false;
}
return true;
}
//а вот здесь вызывается(!) функция и передается ей taxi
var worthALook = prequal(taxi);
if (worthALook) {
console.log("You gotta check out this " + taxi.make + " " + taxi.model);
} else {
console.log("You should really pass on the " + taxi.make + " " + taxi.model);
}
if (!($(".news__image-block").hasClass('open'))) {
$('.news__image').hover(function() {
$(this).children('.news__image-block').toggleClass('half-open');
$(this).parents('.news__item').children('.news__text').children('.news__text-bottom').children('.news__text-next').toggleClass('invert');
});
}
$('.news__image').hover(function() {
if (!($(".news__image-block").hasClass('open'))) {
$(this).children('.news__image-block').toggleClass('half-open');
$(this).parents('.news__item').children('.news__text').children('.news__text-bottom').children('.news__text-next').toggleClass('invert');
}
});
var myArray = [];
$(".izbran").click(function(i) {
if($(".izbran").closest(".container")){
$(this).addClass("ura");
var elems = $(this).closest(".container").clone();
elems.each(function (i){
var number = $(this).children("span").text();
//var zif = Number(number);
//myArray[i]= zif ;
myArray.push(Number(number));
});
console.log(myArray);
}
return false;
});
Dim ServerIP = "127.0.0.1"
Dim address As IPAddress = IPAddress.Parse(ServerIP)
Dim ServerPort As Integer = 50000
TextBoxServerIP.Text = ServerIP
TextBoxServerPort.Text = ServerPort
Dim Server As New TcpListener(address, ServerPort)
Server.Start()