Skip to content

Commit 4de0604

Browse files
ups
1 parent 5bd560c commit 4de0604

File tree

5 files changed

+42
-39
lines changed

5 files changed

+42
-39
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
# JavaScript Learning and Experimentation
1+
# JavaScript
22

33
Welcome to my JavaScript playground! 🚀 Here, I explore and experiment with Plain (Vanilla) JS while building various projects.
44
I learn VanillaJs and expiriment stuffs... from the basic to the most complex concept of programming with Javascipt, I build stuffs👩‍🍳⚡
55

6-
## Introduction
6+
## Introduction - Learning and Experimentation
77

88
In this repository, I focus on hands-on learning of JavaScript core. Each project serves as a practical exercise to enhance my understanding of web development, solving problems and challenges.
99

10-
## Contribution
11-
12-
Feel free to contribute to this project, check out the [/roadmap.txt] file to see how to navigate around this codebase. i promise to merge your possible pull request.
13-
1410
## Setup
11+
1512
Nothing much to set up tho :-
13+
1614
1. Clone this repository to your local machine using `git clone`.
1715
2. Navigate to the project directory: `cd Javascript`.
1816
3. Install project dependencies using `npm install`.
1917
4. Start the development server: `npm test`.
2018
5. install [Code Runner](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) extension on your vscode.
2119

20+
## Contribution
21+
22+
Feel free to contribute to this project, check out the [/roadmap.txt] file to see how to navigate around this codebase. I promise to merge your possible pull request.

roadmap.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ thinking of using this to jot down, hmmm?😏
22

33
lets use readme instead
44

5+
Billion dollar and a dream
56

script.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,29 @@ const arr4 = [...arr1, ...arr2];
2626
arr4.splice(4, 1);
2727

2828
console.log(arr3, arr4);
29+
30+
// TESTS
31+
32+
function validate() {
33+
var re = /[A-Z0-9._%+-]+@[A-Z0-9-]+.+.[A-Z]{2,4}/gim;
34+
35+
return re.test();
36+
}
37+
38+
console.log(validate()); //false
39+
40+
console.log(NaN === NaN); // false
41+
/*
42+
*in JavaScript compare values by checking for strict equality.
43+
*NaN is considered unique in that it doesn't equal any other value, including itself.
44+
*/
45+
46+
// ARITHMETIC SHITS - saw some images on twitter and tried to run it on my console and im very surprised the way JavaScript always work
47+
48+
console.log("2" + "2" + "0");
49+
50+
let booleanTest = "22" + "3";
51+
52+
let result = Boolean(booleanTest);
53+
54+
console.log(result, booleanTest);

test/script.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

util/lib.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let x;
22

3-
const fruits = ['orange', 'pineapple', 'grape', 'banana'];
4-
const car = ['toyota', 'volks', 'nissan', 'passat'];
3+
const fruits = ["orange", "pineapple", "grape", "banana"];
4+
const car = ["toyota", "volks", "nissan", "passat"];
55

66
// fruits.push(car)
77

@@ -55,8 +55,8 @@ console.log(z);
5555
const library = [
5656
{
5757
id: 1,
58-
title: 'How to Make Heaven',
59-
author: 'Alex Gram',
58+
title: "How to Make Heaven",
59+
author: "Alex Gram",
6060
status: {
6161
own: true,
6262
reading: false,
@@ -65,8 +65,8 @@ const library = [
6565
},
6666
{
6767
id: 2,
68-
title: 'Javascript for Vip',
69-
author: 'Ebenezer Ben',
68+
title: "Javascript for Vip",
69+
author: "Ebenezer Ben",
7070
status: {
7171
own: true,
7272
reading: false,
@@ -75,8 +75,8 @@ const library = [
7575
},
7676
{
7777
id: 3,
78-
title: 'No one cares',
79-
author: 'Butter Bread',
78+
title: "No one cares",
79+
author: "Butter Bread",
8080
status: {
8181
own: true,
8282
reading: false,
@@ -93,5 +93,3 @@ const { title: firstBook } = library[0];
9393

9494
const json = JSON.stringify(library);
9595
console.log(json);
96-
97-
// ono

0 commit comments

Comments
 (0)