This commit is contained in:
2024-10-25 11:49:35 +02:00
parent b907fa988b
commit 53c3a4d24a
7 changed files with 202 additions and 0 deletions

19
Practice/Json/script.js Normal file
View File

@ -0,0 +1,19 @@
const names = ["Spongebob", "Patrick", "Sandy", "Squidward"];
const jsonstrings = JSON.stringify(names);
console.log(names);
console.log(jsonstrings);
const person = {
name: "Spongebob",
age: 50,
isemployed: true,
Hobbies: ["Karate", "Danceing", "Cooking"],
address: {
street: "Some st",
number: 123
}
};
console.log(person);
console.log(JSON.stringify(person));