Looking for WMC - Webprogrammierung und Mobile Computing - 2DHIF - SJ2425 test answers and solutions? Browse our comprehensive collection of verified answers for WMC - Webprogrammierung und Mobile Computing - 2DHIF - SJ2425 at moodle.spengergasse.at.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Code A:
fetch('https://api.example.com/data')
.then(response => {
if (!response.ok) {
throw new Error('Netzwerkantwort war nicht ok');
}
return response.
json();
})
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Fehler:', error);
});
Code B:
fetch('https://api.example.com/data')
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Fehler:', error);
});
Gegeben ist folgendes Objekt in JavaScript:
const user = {
username:
"klappstuhl",
password:
"1234"};
Welche Aussage ist korrekt im Kontext der Konvertierung zu JSON?
Ein `div` hat `width: 200px; padding: 10px; border: 5px solid;`. Die `box-sizing`-Eigenschaft ist auf `content-box` gesetzt. Welche Aussagen sind richtig?