<div class="myDiv">
<h2 class="myTitle">Title</h2>
<h2 class="newTitle">Title2</h2>
</div>
During my short use of MongoDB I encountered an issue with double quotes. Since MongoDB stores documents (objects) as JSON fields, key and value pairs, all string values are surrounded with double quotes. Example:
{"name": "Bruce Wayne"}
Although MongoDB will add an escape character if you use double quotes, using double quotes multiple times in the same string will throw an error. To avoid it, I found this handy code snippet that will replace all double quotes with single ones using regex.
Open HTML document and find a body tag. Give the body tag onkeypress attribute. It shoud look like this:
<body onkeypress="KeyPressCheck(event)">
...html code...
</body>
Once that's done head over to your Javascript file that you'll import inside the html file with <script>
tag.
Amazon Simple Queue Service (SQS) lets you send, store, and receive messages between software components at any volume, without losing messages or requiring other services to be available.
Messages stored in SQS can be pulled out by other services such as EC2, Lambda, etc. Upon pulling, message is deleted from the queue.
Circle CI is Continuous integration Continuous delivery platform. Alternative to Github Actions. The service is free to use, but there are paid packages as well.
- Go to Circle CI and create an account (sign up with Github)
- Connect your repository
This article will teach your how to extend the core array class with custom methods in various languages. To apply this we'll make use of:
- Extension Methods (C#)
- Prototypes and Classes (JavaScript)
- Types and Prototypes and Classes (TypeScript)
We're going to make a new method isEmpty that is going to check if the array, list or collection is empty. So when a consumer calls this method it will return true or false.