JavaScript – Basics
(+TypeScript)
If you have no programming experience yet, then the following free materials are recommended to pass:

‣ Iakiv Kramarenko's book: Intro to Software Development (with examples in HTML, CSS, JavaScript).
Harvard's CS50 on edx.org
learn-js.org
‣ edx.org: JavaScript Introduction

If you have experience in programming, but not with JavaScript, then you can quickly get familiar with the language through:

‣ Fast intro to the language syntax: Learn X in Y minutes Where X=javascript
‣ Simple interactive tasks on the language syntax in the format of tests: JavaScript Koans

In the remaining time, you can practice more and harden your skills using one of the following resources:

exercism.io: JavaScript Track
CheckIO
CodinGame
codewars

Once you are familiar with JavaScript, and yet interested to code in TypeScript, go and quickly learn its basics by passing something from:

Learn X in Y minutes Where X=typescript
exercism.io: TypeScript Track
https://www.typescriptlang.org/
TypeScript Deep Dive

Also, it will be more convenient for you if you will save versions of your code for solving certain problems - using version control systems. I recommend using git and one of its most popular servers – github.com. Here's a free tutorial on the topic: Github - Hello World.