Home Blog Project Portfolio Bootcamp Journal More About Me Contact

Week 4

Topics Included: MongoDB, JS DOM, JavaScript, HTML and CSS

Monday 29th January

On the Monday, we covered a lot of information on JS DOM. We learnt about how we can use JS DOM to make changes and add elements to a web page. Below, I have included some image examples of my use of JS DOM to make webpage alterations.

Changing visual appearance, including text colour and background, using JS DOM.
An example from when I started to play around with changing the visual appearance, including text colour and background, using JS DOM.
The results of the previous JS DOM code.
What the changed title and it's background colour now look like.
Using JS DOM to change colour of text based on HTML class.
Here you can see where I used JS DOM to change the colour of text based on HTML class.
The HTML file for this example.
The corresponding html file, that I used to change the colour of text.
The red and orange text results.
The text is now red and orange.
Using JS DOM to make text rainbow colours.
Here you can see where I used JS DOM to make text show in rainbow colours.
The html file I was using for this example.
The corresponding html file, that I used to show text in rainbow colours.
The list now shows in rainbow colours.
The list now shows in rainbow colours.
Using JSDOM to show pictures using their URL.
Oh look it's Salem. Using JS DOM to show a picture using its URL.

Tuesday 30th January

On the Tuesday, we used the day to continue studying JS DOM.

Wednesday 31st January

On the Wednesday, we studied about keycode generators. I used JavaScript, HTML and CSS to make my first keycode generator. Click on the link below to see it.

Visit my first keycode generator

After further reading about keycodes, I learnt that 'event.which' is now deprecated and is now replaced by 'event.key' and 'event.code'. Whilst 'event.which' can still be used, it may not work on all modern browsers. I also learnt about differences between ASSCI keycodes (American Standard Code for Information Interchange) and JavaScript Char keycodes. JavaScript Char keycodes are more versatile and appropriate for handling keyboard interactions in modern web development. My first keycode generator (linked above) uses 'event.which' to generate ASSCI keycodes. I wanted to create a keycode generator to generate JavaScript Char keycodes. I also wanted to make a keycode generator that is more modern and visually appealling. Therefore, I created another keyword generator, (linked below) by following a YouTube video, 'Making a Key Code Generator App Using HTML, CSS & JavaScript', on the channel 'WEB CIFAR'. The code for this second keycode generator is more complex and advanced. I will need to continue to study the code used for this generator in order to gain a greater understanding of how it creates the desired result.

A more complicated keycode generator

Thursday 1st February

On the Thursday morning, we looked at JavaScript functions and objects in more depth. This allowed us to revisit some of the material from the first week and develop a greater understanding of it. I think a big plus point of this is that it seems to have increased everyone’s confidence. Sessions like this are a reminder that it’s important to not only know the ‘how’, but the ‘why’ too. Also, as the boot camp progresses, I realise that the largest challenge is the development of problem-solving skills. I know this is only something that I will be able to develop through time and practice.

In the afternoon, we tackled the creation of drum kits. We were each required to make a digital drum kit using JavaScript, HTML and CSS. We were given a file of sounds, and we needed to create code that would generate the sounds in response to the pressing of keys. Like the keycode generator, this has required the use of adding event listeners. The screenshot below shows my drumkit at a functioning stage, before the completion of the external CSS file.

My drumkit before the development of CSS features.

Below, you can see a link to my drumkit as it is now:

Click to see my drumkit.

Friday 2nd February

On the Friday we began the process of learning to use MongoDB. I learnt about the differences between MongoDB, SQL and NoSQL. I also learnt MongoDB terminology, how to create a MongoDB database and how to make alterations. Below are example screenshots:

Code and results of finding an author's details in MongoDB.
Inserting an author's details into a MongoDB database.
Using update to make an alteration in a MongoDB database.
Using delete to remove information in a MongoDB database.